doc-exports/docs/dis/umn/dis_faq_0015.html
Xiong, Chen Xiao b33a41468c DIS UMN 20230915 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com>
Co-committed-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com>
2023-09-15 13:31:23 +00:00

1.3 KiB

How Can I Configure Recursive Listening for Directories on DIS Agent?

On DIS Agent, set directoryRecursionEnabled to true. For example, the following configuration can match /home/one.log, /home/child/two.log, and /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