Docker compose / logging / driver gcplogs / json log entry taken as one big string

Hi!

There is logging entry in docker compose yml file:

    logging:
      driver: gcplogs

The docker container logs the following message:

{"timestampSeconds":1727857667,"timestampNanos":212091966,"severity":"INFO","thread":"background-preinit","logger":"org.hibernate.validator.internal.util.Version","message":"HV000001: Hibernate Validator 8.0.1.Final","context":"default"}

It is visible in Google Logs Explorer as following (NB! the whole message is stored in field “jsonPayload.message” which is NOT expected):

Regards
Marek


The following output is expected where severity, thread, logger, message etc is splitted into fields:
image

I did not find options to change the behaviour.
Any help is welcome.

Regards
Marek