-
Notifications
You must be signed in to change notification settings - Fork 12
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
Implement ECS-Compatibility Mode #17
Comments
The plugin adds a
Regarding to ECS, the case of the The case of The message is already compatible with ECS: https://www.elastic.co/guide/en/ecs/1.10/ecs-base.html#field-timestamp |
@yaauie Logstash has already the |
Summarizing outside discussion:
|
I've the suspect that we potentially break something doing this. { "message": "epoch",
"clock": 1233254534 or { "message": "sequence",
"clock": 1 In both cases the event contains itself the type of the counter. If we unset the We could introduce the new config option (name it In ECS mode:
Do you think the plugin should also put a metadata or a tag to say which kind of sequence the |
Currently, as implemented without ECS mode, if a user specifies In ECS mode, I prefer
|
This PR does 3 things: * enable ECS compatibility, replacing the clock field with [event][sequence] when ECS is enabled * introduces a new option named sequence to configure the kind of counter used in the "clock/sequence" field * unrelated to the context of ECS it switches the creation of the Event to the event_factory mixin In non ECS mode the sequence setting takes precedence over message and if message contains a value other then epoch or sequence it includes also the message field in the generated event. In ECS mode only the sequence setting is considered to select the kind of counter, if message contains epoch or sequence its simply ignored and no message field is present in the event, otherwise message is part of the event together with the [event][sequence] Fixes #17 Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com> Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com> Co-authored-by: Karol Bucek <kares@users.noreply.github.com>
This is a stub issue, and needs to be fleshed out with details specific to
this plugin.
As a part of the effort to make plugins able to run in an ECS-Compatible manner
by default in an upcoming release of Logstash, this plugin needs to either
implement an ECS-Compatibility mode or certify that it does not implicitly use
fields that conflict with ECS.
The text was updated successfully, but these errors were encountered: