How to set new logging configuration settings as environment variables in Kibana docker container

Hey there,

we're running Kibana in a docker container and all configuration is provided via injected environment variables - hence we do not mount a kibana.yml file.

As stated in the documentation, the "syntax" for the docker environment is different.

E.g. elasticsearch.hosts is ELASTICSEARCH_HOSTS.

So far so good.

However, I don't know how to "translate" the settings for the new logging capabilities listed here.

I've tried to built

logging:
  appenders:
    console-meta:
      type: console
      layout:
        type: pattern
        pattern: "[%date] [%level] [%logger] [%meta] %message"
  root:
    appenders: [default, console-meta]

the following way but without success

LOGGING_APPENDERS[]=[CONSOLE-META]
LOGGING_APPENDERS_CONSOLE-META_TYPE=console
LOGGING_APPENDERS_CONSOLE-META_LAYOUT_TYPE=pattern
LOGGING_APPENDERS_CONSOLE-META_LAYOUT_PATTERN="[%date] [%level] [%logger] [%meta] %message"

LOGGING_ROOT_LEVEL=info
LOGGING_ROOT_APPENDERS[]=[default, CONSOLE-META]

This also didn't work:

LOGGING_APPENDERS_0=console-meta
LOGGING_APPENDERS_0_TYPE=console
LOGGING_APPENDERS_0_LAYOUT_TYPE=pattern
LOGGING_APPENDERS_0_LAYOUT_PATTERN="[%date] [%level] [%logger] [%meta]"

LOGGING_ROOT_LEVEL=info
LOGGING_ROOT_APPENDERS_0=default
LOGGING_ROOT_APPENDERS_1=console-meta

If possible I'd like to avoid mounting a kibana.yml file but I'm not sure how to handle the arrays.

Could you please clarify?
Thanks in advance.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.