Wrap all but the first grok filter in a conditional so that the subsequent ones are only tried if there hasn't been a match earlier.
grok {
...
}
if "_grokparsefailure" in [tags] {
grok {
...
remove_tag => ["_grokparsefailure"]
}
}
Wrap all but the first grok filter in a conditional so that the subsequent ones are only tried if there hasn't been a match earlier.
grok {
...
}
if "_grokparsefailure" in [tags] {
grok {
...
remove_tag => ["_grokparsefailure"]
}
}
© 2020. All Rights Reserved - Elasticsearch
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.