-
Notifications
You must be signed in to change notification settings - Fork 80
Java Json format not consistent with ECS #102
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
Comments
Closing as duplicate of #51 Please let me know whether the |
We fix it within logstash at the moment. |
Hello, Could that resolve the issue of https://github.com/elastic/ecs-logging-java/issues/51?
The typed object hierarchy could standardize the way of organizing the JSON. Hence, would that not simplify the problem and make the solution possible in the java-ecs-library? |
While a typed object structure is a great way to add additional fields, it does come with an overhead for the simple case where you just log a message. |
I've imported the ecs template into our cluster and ingested data using ecs-logging-java and ecs-logging-python. The latter formats json log statements which match the ecs structure but Java not.
Here a snippet:
...
"log.level":"DEBUG",
...
"log.origin": {
"file.line": 655,
"file.name": "SpringApplication.java",
"function": "logStartupProfileInfo"
},
This should look like:
...
"log": {
"level": "DEBUG",
"origin": {
"file": {
"line": 655,
"name": "SpringApplication.java""
},
"function": "logStartupProfileInfo"
},
...
The text was updated successfully, but these errors were encountered: