thekrakken / java-grok

Simple API that allows you to easily parse logs and other files
http://grok.nflabs.com/
Other
358 stars 152 forks source link

Enable pre 0.1.3 behavior of parsing captured values to integers #60

Closed ottobackwards closed 6 years ago

ottobackwards commented 7 years ago

Users or systems with significant grok pattern sets are regressed by the behavior introduced in 0.1.3 with regards to the parsing of integers to integer types. Rules that would once produce Integer will now produce String captures from the map.

This PR allows a flag to be passed to a new Match.capture function and subsequently to the Converter.convert such that the prior behavior can be maintained.


This change is Reviewable

ottobackwards commented 6 years ago

I'm going to close this