Hello, I'm getting this error multiple times now.
I realize I shouldn't define multiple prospectors over one file, but i put all my server's log into same log file.
I need to use multiple prospector to define different log types.
Is there anyway i can avoid this?
Or can i start more than one filebeat program on the same server, using different configs?
Could you please provide more info on how do you want to filter messages from your log file?
To me it seems like you have a log file which includes logs with different log levels, and you want to add fields to the messages depending on the log level. Is that correct?
If yes, you can achieve this by using one prospector and adding a processor which checks the log level and then applies the correct fields. See more on processors:
Thank you.
Yes, that's exactly what i meant.
But I couldn't think of a way to get the different log levels from a log string before logstash grok.
Therefore, i can't use the processor.
That's why i use different prospector to add fields, and send to Logstash to apply different types of grok.
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.