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