thekrakken / java-grok

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

Feature request: Maintain order for captures? #104

Open Kshitiz-Sharma opened 6 years ago

Kshitiz-Sharma commented 6 years ago

I have a rare requirement to obtain the captures in strict order. This can be easily accomplished by replacing:

capture = new HashMap<>();

With

capture = new LinkedHashMap<>();

in Match.java

Kindly consider including this in the next release.

ottobackwards commented 6 years ago

can you submit a PR with a test?

Kshitiz-Sharma commented 6 years ago

I'll see if I can get around to it this weekend.

ottobackwards commented 6 years ago

Great! tag me in the PR and I'll test and review.