I want to read multiple log files and send it to logstash. Below is my configuration (I just wanted to test it locally so the configuration I used is given below):
I see that only one of the file is getting written. How can I configure to write the other file as well ? I have updated my whole configuration file for your reference.
Be careful with Windows paths in filebeat configuration, backslash (\) is used to escape characters in yaml, so you need to escape these backslashes (C:\\data\\log\\eis.log), or quote the paths with single quotes ('C:\data\log\eis.log').
With that change no files are getting generated and filebeat exited with the error :
2018-08-07T15:44:38.817+0530 ERROR instance/beat.go:691 Exiting: Error in initing input: No paths were defined for input accessing 'filebeat.prospectors.2' (source:'filebeat.yml')
Exiting: Error in initing input: No paths were defined for input accessing 'filebeat.prospectors.2' (source:'filebeat.yml')
Can you please look into my whole configuration file that I have posted. Just to mention I am using 6.3 ELK stack. I see filebeat.inputs is mentioned not the prospectors so are they deprecated ? Anyway I see the double slash is not something that works in 6.3 version. We should use the normal path. So I still see only my first file is getting written not the second file. Kindly help.
I see only the eis.log file the other file is not there in ELK. Filebeat is harvesting only 1 file not sure why its ignoring the other file i.e. sa.log.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.