Populate event.dataset based on service.name#29
Populate event.dataset based on service.name#29tobiasstadler wants to merge 1 commit intoelastic:mainfrom
Conversation
❕ Build Aborted
Expand to view the summary
Build stats
Steps errors
Expand to view the steps failures
|
|
This is weird imo? You log it to the service space right? Why push it to the event in that case |
|
By default Logs app in Kibana displays the event.dataset field (see https://www.elastic.co/guide/en/kibana/current/observability.html#logs-app), so I think it is valuable to have support for it in the php Ed’s logging implementation. The Java implementation populates the field based on the service name, if not explicitly given (see https://github.com/elastic/ecs-logging-java/blob/09c07cf451bebb86f82e3f21abc0579455d81ee8/ecs-logging-core/src/main/java/co/elastic/logging/EcsJsonSerializer.java#L283) so I thought we should do the same here. Do you think creating a Event class is better? |
ecs-logging-java does a similar thing