数据接入服务 DIS-Agent如何配置递归监听一个目录?

时间:2024-10-25 16:22:47

Agent如何配置递归监听一个目录?

DIS Agent支持配置递归监听,将配置项"directoryRecursionEnabled"的值配置为"true"即可支持,例如以下配置可以匹配到"/home/one.log""/home/child/two.log""/home/child/child/three.log"

---
region: REGION
ak: YOUR_AK
sk: YOUR_SK
projectId: YOUR_PROJECTID
endpoint: ENDPOINT
flows:
  - DISStream: YOUR_STREAM
    filePattern: /home/*.log
    directoryRecursionEnabled: true
    initialPosition: START_OF_FILE
    maxBufferAgeMillis: 5000
support.huaweicloud.com/dis_faq/dis_faq_0015.html