Beats prospector- No paths defined

Hi,

I installed filbeat on ubuntu 16.04 to send logs to my logstash server. I am looking to send auth.log to it.
prospector text:

filebeat.prospectors:

  • input_type: log

    Paths that should be crawled and fetched. Glob based paths.

paths:

  • /var/log/auth.log

But starting the filebeat gives below error:
Exiting: Error in initing prospector: No paths were defined for prospector accessing 'filebeat.prospectors.0' (source:'/etc/filebeat/filebeat.yml')

What do I do? Do I have to reload the config or something?

Thanks in advance.

Hi iyerabhi07,

Checkout this online YAML parser: http://yaml-online-parser.appspot.com/

Then run your config and the one below and see if you can identify the differences (note the spacing):

filebeat.prospectors:
- input_type: log
  paths:
    - /var/log/wifi.log

I hope this helps. If it does not you may have an issue in addition to the spacing.

1 Like

@Troy_Axthelm: you rock!! Thanks a ton. Worked perfectly.

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