But this kv is just applicable only for the messages which contains the correct kv. there are some other messages which doesn't meet the criteria and i want to eliminate them and want them to be treated as Logmessage only.
Problem: these unwanted messages are creating multiple fields in elasticsearch.
Do the events which are not kv fail the kv filter or they go through it?
When the kv fails, the event is tagged (see tag_on_failure).
If they're tagged, you can identify such events.
If you're able to distinguish between "correct" KV and not-KV Logmessages using a regular expression, I think the best would be to check it with the regular expression before applying the filter.
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.