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

**URL:** <https://discuss.elastic.co/t/how-to-set-new-logging-configuration-settings-as-environment-variables-in-kibana-docker-container/323412>\
**Category:** Kibana\
**Tags:** docker\
**Created:** [January 18, 2023, 1:20pm UTC](https://discuss.elastic.co/t/how-to-set-new-logging-configuration-settings-as-environment-variables-in-kibana-docker-container/323412 "2023-01-18T13:20:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![apt-get\_install\_skil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/apt-get_install_skil/32/115156_2.png) [@apt-get\_install\_skil](https://discuss.elastic.co/u/apt-get_install_skil)\
**Post date:** [January 18, 2023, 1:20pm UTC](https://discuss.elastic.co/t/how-to-set-new-logging-configuration-settings-as-environment-variables-in-kibana-docker-container/323412/1 "2023-01-18T13:20:18Z")

</div>

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](https://www.elastic.co/guide/en/kibana/current/logging-settings.html).

I've tried to built

```auto
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**

```auto
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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 15, 2023, 1:21pm UTC](https://discuss.elastic.co/t/how-to-set-new-logging-configuration-settings-as-environment-variables-in-kibana-docker-container/323412/2 "2023-02-15T13:21:03Z")

</div>

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