Closed suyograo closed 9 years ago
I found this while debugging https://github.com/elastic/logstash/issues/2897
A pattern like: (N/A|%{BASE10NUM:duration:int}ms) needs to only extract duration if the input text is like 24ms and not have the capture when the input text is N/A. Currently, this will output duration=0 which is not expected
(N/A|%{BASE10NUM:duration:int}ms)
duration
24ms
N/A
duration=0
The previous versions of grok were handling this correctly. This was a side effect of the optimization changes we did in https://github.com/jordansissel/ruby-grok/pull/11
I found this while debugging https://github.com/elastic/logstash/issues/2897
A pattern like:
(N/A|%{BASE10NUM:duration:int}ms)
needs to only extractduration
if the input text is like24ms
and not have the capture when the input text isN/A
. Currently, this will outputduration=0
which is not expectedThe previous versions of grok were handling this correctly. This was a side effect of the optimization changes we did in https://github.com/jordansissel/ruby-grok/pull/11