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

Add prospector meta data on prospector level to event #2290

Merged
merged 1 commit into from
Feb 8, 2017

Conversation

ruflin
Copy link
Contributor

@ruflin ruflin commented Aug 17, 2016

This simplifies the creation of events on the harvester level and automatically provides the functionality for future types of harvesters

@urso
Copy link

urso commented Aug 17, 2016

This change seems to change the event to be only partially by harvester.

I see why it makes sense to fill these common setting in prospector, but if possible i'd avoid having to pass partially initialized values.

@ruflin
Copy link
Contributor Author

ruflin commented Aug 17, 2016

I think the way it will look in the long run is that there is generic event object which is valid across all prospectors, and each prospector with its harvester will have potential additional fields on top. Somehow reminds me of: #2239 I think the above event is completely valid also without the additional fields from the prospector. As it simplifies the harvester this is a step forward.

@ruflin ruflin force-pushed the fb-move-meta-data branch 2 times, most recently from 07fbae2 to 1f78226 Compare September 19, 2016 11:42
@ruflin ruflin added in progress Pull request is currently in progress. and removed review labels Sep 20, 2016
@ruflin ruflin force-pushed the fb-move-meta-data branch 2 times, most recently from e4d0338 to 479e38b Compare November 11, 2016 19:49
@ruflin ruflin force-pushed the fb-move-meta-data branch from 479e38b to 7d272db Compare January 11, 2017 12:09
@ruflin ruflin force-pushed the fb-move-meta-data branch from 7d272db to 1a6b157 Compare January 20, 2017 12:04
@ruflin ruflin added the review label Jan 20, 2017
@ruflin ruflin force-pushed the fb-move-meta-data branch from 1a6b157 to 8945049 Compare January 31, 2017 14:16
@ruflin ruflin removed the in progress Pull request is currently in progress. label Jan 31, 2017
@ruflin ruflin force-pushed the fb-move-meta-data branch 2 times, most recently from c3f1bf2 to 9111d16 Compare February 7, 2017 15:55
This simplifies the creation of events on the harvester level and automatically provides the functionality for future types of harvesters.

General idea
* Harvester should have as few knowledge as possible
* Prospector will do the generic creation of the event

mergeJSONFields is something that should happen on a prospector level and not be part of the input.Event in the end.
@ruflin ruflin force-pushed the fb-move-meta-data branch from 9111d16 to 0867175 Compare February 7, 2017 18:48
@ruflin
Copy link
Contributor Author

ruflin commented Feb 8, 2017

jenkins, retest it

@urso urso merged commit 62113b1 into elastic:master Feb 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants