Filebeat not picking files from path

HI Team,
I'm picking my logs using filebeat when i hardcode my path beats pick it properly without any trouble instead of that if i define the path with regular expression it fail to pick the file and keep on posting start next scan message in screen. Can anyone help me on this

  •  paths:
       - /XX/XX/XX/XX/XX/DDI/20[0-9][0-9][0-9][0-9][0-9][0-9]/[0-9][0-9][0-9][0-9][0-9]/XXX/*_Request.txt
     document_type: XX
     ignore_older: 96h
     close_older: 5m
     multiline:
      pattern: '<\/.*:XX>'
      negate: true
      match: before

filebeat paths config does not support regular expressions. It requires you to use a glob pattern. Unfortunately recursive glob pattern (often **) is not supported yet. In case you know the directory depths you can try to use something like `

`

  • /XX/XX/XX/XX/XX/DDI/20*//XXX/_Request.txt
    `

This topic was automatically closed after 21 days. New replies are no longer allowed.