-
Notifications
You must be signed in to change notification settings - Fork 52
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 #91
Add ECS support #91
Conversation
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.
Wow, looks great.
And 💯 for the extensive tests.
I tested the code with the legacy formatter and it works fine.
With the ECS formatter, the final Logstash event has JSON fields like "log.syslog.hostname", will this be stored as object structure in ES or as is?
It seems to get mapped as an object structure. |
Having a consistent, ideally dedotted structure on the created events sounds good. But please be aware that we cannot use the mentioned implementation here as it is licensed as "Apache License, Version 2.0" or even "Elasticsearch B.V." (I don't understand their licensing anymore :( ). This library is licensed as MIT and so we cannot use "Apache License, Version 2.0" licensed code. Either you find an implementation with a compatible license or write it from scratch. |
We really only need |
Alright, then go ahead. |
The changes look good and work as expected. There are some linting issues, after those get fixed, I think we are ready to merge.
|
Linting issues should be fixed now. |
I fixed the PyLint warnings:
in master. The Flask warning about the version can be easily fixed: import importlib.metadata
...
importlib.metadata.version("flask") if you like to add it, otherwise I will do it after this one is merged. But the tests seem to have various problems on older Python versions and other problems on recent Python versions :(. And I don't know why I have to approve every single CI run after your pushes. Basically it should run automatically after approved once, I thought. |
Tests should work now.
I thought so as well.
The wording is a bit vague regarding subsequent approvals though. |
Nice that you added Python 3.12 to the tests! Thank you for your efforts and the great work! |
I will add some docs and make a release next week. |
This is a follow up to #90.
I'm not sure if that's the right approach for it to be merged into mainstream, so I'd appreciate your input @eht16.
Fixes #39.