文档首页> 数据接入服务 DIS> 常见问题> DIS Agent相关问题> Agent如何配置递归监听一个目录?
更新时间:2021-03-18 GMT+08:00
分享

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
分享:

DIS Agent相关问题 所有常见问题

more