I have log messages with field data delimited by [ ] characters. The problem is that sometimes the data in the field contains those characters. How do I write the grok pattern to take the nesting level into account, excluding the outer brackets?
Example, given the field data:
[aaa[bbb]ccc[ddd[14]]]
I want to parse it such that the resulting field contains
Thanks! What I forgot to mention is that there is another field following this one that I don't want to match. I want that to be matched separately. So, a better example would be:
... [aaa[bbb]ccc[ddd[14]]][name=zyz]
Your suggestion seems to be in the right direction but I think it will match too much in this case. I'm still working on it.
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.