Hi,
Trying to create my own grok patterns, I'm using the following with the Grok Debugger :
Sample data : [ 4812 6032][15 Feb 18:23:15][LdManInit] Loading Library in Load mode
Grok Pattern : %{IDLOG:whom} %{TIMEST:when} %{LOGCAT:what}
Custom patterns : IDLOG ^\[.([0-9]{4,6}.[0-9]{4,6})\] TIMEST \[([0-9]{1,2}.[a-zA-Z]{3}.*[0-9])\] LOGCAT \]\[(.[a-zA-Z]*.)\]|\]\[\]
Which returns the error above.
But if I'm using only one pattern (IDLOG, TIMEST, LOGCAT) at onces, they work perfectly...
Any idea that could help me to debug this ?
Many thanks in advance,
Chris
You pattern has spaces between the three items, your message does not. Also, TIMEST has consumed the ] after the timestamp, so LOGCAT does not have anything to match the "\]" that it starts with. This works...
I have certainly seen cases where kibana and the Heroku debugger parse things differently to logstash (kibana does multiline matching of GREEDYDATA differently, for example). I do not use them, instead I debug grok patterns using grok as detailed here.
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.