What i want is to capture FWD string only when it's after type=.
In essence capturing "type=FWD" but only displaying FWD from the log entry above.
However this did not work for me although I tested this on regex101.com and it worked there.
My positive lookahead worked as charm though matching Block: but only displaying Block without the semicolon : and the space - (?\w+(?=:\s)
Much appreciated Badger. I'll need some time to read about dissect and comprehend it but really thank you very much.
Otherwise, I also thought that positive lookbehind is supported.
However, when using the Online grok Debugger, it seems that it did not work.
Does that mean that the problem might be in the online debugger itself?
As a proof, please, check the below images.
First picture shows that the grok pattern works so far and it yields results.
However, the second (and third) picture shows a valid positive lookbehind
Firstly, I only typed the field name (second pic) and it worked as my field name is TYPE and this is reflected in the output below (third pic)
I never use anything other than grok to develop grok patterns because the online grok debugger and even kibana can interpret patterns differently to grok. See here for more detail.
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.