Repository navigation
Replies: 1 comment
|
I'm not sure how much flexibility is allowed in the ecs formatting, because it is effectively piggybacking on the existing mechanisms to manipultate JSON output. You could try the default format instead, and add in your own quarkus.log.console.json properties - see things like https://quarkus.io/guides/logging#quarkus-logging-json_quarkus-log-console-json-key-overrides - that takes a String, which is a map of built-in keys mapped to your preferred key, so you'd map sequence to eventId rather than event.sequence. There are several issues open along the lines of customizing ecs output. See also an issue / discussion around supporting a nested format: quarkusio/quarkus#47371 |
8000
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I am using console handler for logging
For my application I want a logging output as json like
We can create the above format using
log_console_json_formatbut I want this output as json. Is there any way to customize the ecs json format like above so that I can change the order, renaming the parameter for eg: "event.sequence" to "eventId" and add/remove parameters as per the requirement?All reactions