Unable to define multiple log file location in filebeat

I am trying to configure multiple file location in filebeat.yml but its not sending the logs
eg paths: - D:\logs\*.logs - D:\logs\INT1\*.logs
Can you please help to resolve the issue

Did you literally write this into your config file? paths: - D:\logs\*.logs - D:\logs\INT1\*.logs

This is not valid YAML list. You need to use newlines or use JSON style lists. Plus: the setting must be added to a prospector like:

filebeat.prospectors:
- ...
  paths:
    - 'D:\logs\*.logs'
    - 'D:\logs\INT1\*.logs'

Note: Use single quotes for windows file paths.

It worked with single quotes

Thanks for the help

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.