-
Notifications
You must be signed in to change notification settings - Fork 153
Preserve the order of log format in capture #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preserve the order of log format in capture #106
Conversation
|
@anthonycorbacho @paulwellnerbou @ottobackwards Please review and merge this PR. |
|
First, thanks for the contribution.
private Map<String,Object> createCaptureMap() {
if (orderCaptures) {
return new LinkedHashMap<>();
}
return new HashMap<>();
}
|
|
@ottobackwards Thank you so much for the review. This is the most urgent and important fix for our project.
|
e32e040 to
244990b
Compare
244990b to
3e03ae0
Compare
|
@ottobackwards Have removed the changes in the documentation and made changes in the unit tests. |
|
Thanks @SivaMaplelabs, could you change the tests or add new tests the specifically test that the map iteration matches the capture order? That is the point. |
|
@SivaMaplelabs , looks great. Unfortunately I don't have rights to publish it, I would have to create an own version again, as I did with https://github.com/paulwellnerbou/java-grok/releases/tag/0.1.8 and https://bintray.com/paulwellnerbou/maven/java-grok/0.1.8 |
|
@anthonycorbacho Could you please review and merge this PR? |
|
Hi,
Sure i will do it after landing, it will be in couple of hours.
…On Wed, 3 Oct 2018 at 8:54 AM SivaMaplelabs ***@***.***> wrote:
@anthonycorbacho <https://github.com/anthonycorbacho> Could you please
review and merge this PR?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#106 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC_n5fY1fMKMTGzS9SleGjGuRRFsQCrZks5uhLNxgaJpZM4W7D-6>
.
|
|
Sure. Thanks. |
|
Reviewed and merged, thanks for your contribution 💃 |
|
@anthonycorbacho Thanks |
Dear java-grok maintainers,
Please accept this PR.
Analysis
Currently, capture is returning the unordered Map.
Resolution
Return the map with the same order as log format(pattern).
Test
Tested with different types of logs.