The default grouping for Kibana is by following this format: https://github.com/cowprotocol/infrastructure/pull/1652#discussion_r1644239695 One simple implementation is using: https://github.com/cowprotocol/watch-tower/blob/main/src/utils/logging.ts#L6