更新时间:2022-02-22 GMT+08:00

Agent如何配置代理?

DIS Agent支持通过配置代理上传数据到DIS,需要配置"PROXY_HOST""PROXY_PORT""PROXY_USERNAME""PROXY_PASSWORD",这几个配置项介绍可以查看Agent配置文件说明。

---
region: REGION
ak: YOUR_AK
sk: YOUR_SK
projectId: YOUR_PROJECTID
endpoint: ENDPOINT
PROXY_HOST: YOUR_PROXY_HOST
PROXY_PORT: YOUR_PROXY_PORT
PROXY_USERNAME: YOUR_PROXY_USERNAME
PROXY_PASSWORD: YOUR_PROXY_PASSWORD
flows:
  - DISStream: YOUR_STREAM
    filePattern: /home/*.log
    initialPosition: START_OF_FILE
    maxBufferAgeMillis: 5000