I'm trying to filter out certain types of logs which contain a string message. The error is a log level error which consumes my all events view in kibana. I would like to not have this appear in kibana. I would also be open to changing the level to debug in place of dropping.
I've tried the following with no success:
Adding a filter to my conf.d file on my log server:
if "part of my string" in [msg] {
drop {}
}
if "part of other string" in [msg] {
drop {}
}
I've also tried adding an exclude_lines filter under my filebeat.prospectors file:
exclude_lines: ['.partofmystring.', '.partofotherstring::.']
And I've tired using a processor:
filebeat.prospectors:
-input_type: log
paths:
/my/path/log
processors:
-drop_event:
when:
contains:
json: 'part of my string'
json._source: 'part of other string'
_source.msg: 'part of other string'
.msg: 'part of other string'
None of these have worked as anticipated. How should I go about filtering these non-important logs from my kibana dashboard?
Okay, I'm not sure what's up here. I'd verify that Logstash really is running with the configuration you think it is and simplify the configuration to a minimal example.
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.