The logstash multiline plugin adds the value 'multiline' to tags. Then it is possible to perform additional processing of such events:
if 'multiline' in [tags] {
....
}
Are there plans to add this into Filebeat?
The logstash multiline plugin adds the value 'multiline' to tags. Then it is possible to perform additional processing of such events:
if 'multiline' in [tags] {
....
}
Are there plans to add this into Filebeat?
I'm curious, what conditional extra processing do you perform just because the line was joined from multiple physical lines?
if 'multiline' in [tags] {
mutate { # Replace all new line characters with a label.
gsub => [ '[@metadata][message]', '\n', '<<NEWLINE>>' ]
}
}
The newline characters are replaced with a label which another system uses to parse the line.
Feel free to add an enhancement request to github.com/elastic/beats. Some indicator to flag merged lines totally makes sense.
Enhancement to include indication of a multiline has been recorded.
© 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.