I want to scan all the matches in port1:12.3-port3:11.5 with pattern -?port%{NUMBER:port}:%{NUMBER:data:float}?. But when I use grok.match(pattern), in the captures I only get port=1 and data=12.3 for the first match.
How can I get a match-list for all the matches?
I want to scan all the matches in
port1:12.3-port3:11.5
with pattern-?port%{NUMBER:port}:%{NUMBER:data:float}?
. But when I usegrok.match(pattern)
, in the captures I only get port=1 and data=12.3 for the first match. How can I get a match-list for all the matches?