I am using a very long grok templates to parse some complex logs like mysql slow log. It looks ugly in config: very long string, full of characters like (?<z>%{ZZ})? - hard to read and hard to write. Does logstash config format support a multi-line strings, something like in python?
mystring = """very
long
but
still
readable
line"""
I am shipping multiline message altogether, so I don't need multiline codec to merge separate lines back in one message. I am happy with grok patterns like this: "(?m)%{DATA}\n%{DATA}\n%{DATA}".
I just want to make config human readable, so I need some syntax hack to split one very long line into several.
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.