-
Notifications
You must be signed in to change notification settings - Fork 85
Add documentation for ecs_compatibility #166
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
Conversation
Signed-off-by: Deep Datta <deedatta@amazon.com>
Signed-off-by: Deep Datta <deedatta@amazon.com>
Signed-off-by: Deep Datta <deedatta@amazon.com>
README.md
Outdated
| } | ||
| ``` | ||
| ### ecs_compatibility | ||
| ECS compatibility for V8 was added in 1.3.0. For more details on ECS support refer to this [documentation](docs/ecs_compatibility.md). |
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.
Include the acronym's full form with the link Elastic Common Schema(ECS) so that the reader knows what you're referring to.
Nit: Reword it Version 1.3.0.
Also, I noticed in the release notes for version 1.3.0 there is no mention of ECS compatibility but we're mentioning here it was added in that version. We should update the release notes for consistency.
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.
Good call on expanding it the first time mentioned and the link.
README.md
Outdated
| ### ecs_compatibility | ||
| ECS compatibility for V8 was added in 1.3.0. For more details on ECS support refer to this [documentation](docs/ecs_compatibility.md). | ||
|
|
||
| ## Detailed Documentation |
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 section seems out of place as detailed documentation and can be removed. If you still want to include it, this can be added as a link Ship events to OpenSearch under Project resources
README.md
Outdated
| } | ||
| } | ||
| ``` | ||
| ### ecs_compatibility |
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.
Might be worthwhile adding a new section Support for ECS Compatibility otherwise it looks like it's a part of Configuration.
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.
Maybe name this ECS Compatibility?
docs/ecs_compatibility.md
Outdated
| ``` | ||
| [2022-08-23T00:01:53,366][WARN ][logstash.outputs.opensearch][main][a36555c6fad3f301db8efff2dfbed768fd85e0b6f4ee35626abe62432f83b95d] Could not index event to OpenSearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"ecs-logstash-2022.08.23", :routing=>nil}, {"@timestamp"=>2022-08-22T15:39:18.142175244Z, "@version"=>"1", "server"=>"remoteserver.com", "message"=>"Doc1"}], :response=>{"index"=>{"_index"=>"ecs-logstash-2022.08.23", "_id"=>"CAEUyYIBQM7JQrwxF5NR", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"object mapping for [server] tried to parse field [server] as object, but found a concrete value"}}}} | ||
| ``` | ||
| ## How to make things compatible |
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.
Reword to How to ensure ECS compatibility
docs/ecs_compatibility.md
Outdated
| [2022-08-23T00:01:53,366][WARN ][logstash.outputs.opensearch][main][a36555c6fad3f301db8efff2dfbed768fd85e0b6f4ee35626abe62432f83b95d] Could not index event to OpenSearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"ecs-logstash-2022.08.23", :routing=>nil}, {"@timestamp"=>2022-08-22T15:39:18.142175244Z, "@version"=>"1", "server"=>"remoteserver.com", "message"=>"Doc1"}], :response=>{"index"=>{"_index"=>"ecs-logstash-2022.08.23", "_id"=>"CAEUyYIBQM7JQrwxF5NR", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"object mapping for [server] tried to parse field [server] as object, but found a concrete value"}}}} | ||
| ``` | ||
| ## How to make things compatible | ||
| * As mentioned at the beginning, the plugins in the pipeline that create the events like the `input` and `codec` plugins should all use ECS defined fields. |
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.
Where was this mentioned? Might be worth mentioning the exact section.
docs/ecs_compatibility.md
Outdated
| * You can use your own custom template in the plugin using the `template` and `template_name` configs. | ||
| [According to this](https://www.elastic.co/guide/en/ecs/current/ecs-faq.html#type-interop) some field types can be changed while staying compatible. | ||
|
|
||
| As a last resort the `ecs_compatibility` of the logstash-output-opensearch can be set to `disabled`. |
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.
It makes sense to further clarify where this ecs_compatibility is defined and how it's disabled by including an example.
|
|
||
|
|
||
| _______________ | ||
| ## References |
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.
Commented about this on line 95.
Signed-off-by: Deep Datta <deedatta@amazon.com>
|
added new commit with changes based on the reviews |
* Add a documentation for ecs compatibility Signed-off-by: Deep Datta <deedatta@amazon.com> (cherry picked from commit 3ea2ba7)
Description
Add documentation for ecs compatibility
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.