Beats prospector- No paths defined


(Iyerabhi07) #1

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.


(Troy Axthelm) #2

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.


(Iyerabhi07) #3

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


(system) #4

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