Skip to content
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

Move handling of json fields to harvester #4159

Merged
merged 2 commits into from
May 2, 2017

Conversation

ruflin
Copy link
Contributor

@ruflin ruflin commented May 1, 2017

Because of historical reasons, the common.MapStr event was generated in input.Event which required the JSONConfig to be passed to the Event object. This is not nice because it is harvester specific knowledge in the event object which should not be the case. With the introduction of the data object is is now possible that the arranging of the json fields already happens in the harvester.

Further generalisation of the event handling will be introduce with the addition of new prospector types.

Because of historical reasons, the common.MapStr event was generated in `input.Event` which required the JSONConfig to be passed to the Event object. This is not nice because it is harvester specific knowledge in the event object which should not be the case. With the introduction of the data object is is now possible that the arranging of the json fields already happens in the harvester. The @timestamp field had to be moved to the harvester to make sure json error handling still works as before. Unused Event fields were removed.

Further generalisation of the event handling will be introduce with the addition of new prospector types.
@ruflin ruflin force-pushed the move-json-mapping branch from 95b8b13 to ec5b4fa Compare May 1, 2017 13:43
@tsg tsg merged commit 628615e into elastic:master May 2, 2017
@ruflin ruflin deleted the move-json-mapping branch May 10, 2017 10:29
@ruflin ruflin mentioned this pull request May 10, 2017
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants