-
Notifications
You must be signed in to change notification settings - Fork 63
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 ECS support #36
add ECS support #36
Conversation
add decoded message to [event][original]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, one suggestion about removing unused require
lib/logstash/codecs/avro.rb
Outdated
require 'logstash/plugin_mixins/ecs_compatibility_support/target_check' | ||
require 'logstash/plugin_mixins/validator_support/field_reference_validation_adapter' | ||
require 'logstash/plugin_mixins/event_support/event_factory_adapter' | ||
require 'logstash/plugin_mixins/event_support/from_json_helper' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✂️ we do need the require 'logstash/plugin_mixins/event_support/from_json_helper'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs: Left some comments inline for your consideration.
|
||
Define the target field for placing the row values. If this setting is not | ||
set, the Avro data will be stored at the root (top level) of the event. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we include this note from the commented code?
Note that the target is only relevant when decoding data into a new event.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is important. many thanks
docs/index.asciidoc
Outdated
Define the target field for placing the row values. If this setting is not | ||
set, the Avro data will be stored at the root (top level) of the event. | ||
|
||
For example, if you want data to be put under the `document` field: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example, if you want data to be put under the `document` field: | |
*Example* | |
In this configuration, data will be placed under the `document` field. |
docs/index.asciidoc
Outdated
} | ||
} | ||
} | ||
---------------------------------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
---------------------------------- | |
---------------------------------- | |
ECS support add
target
and[event][original]
Fixed: #34