Configuration of Kibana running in Docker

Hi,

we're running Kibana as a Docker-container and can configure some options with environment-variables, but not all.

These see to work just fine:

"ELASTICSEARCH_HOSTS": "http://xxxxxxx:9200",
"ELASTICSEARCH_PASSWORD": "password",
"ELASTICSEARCH_SSL_VERIFICATIONMODE": "none",
"ELASTICSEARCH_USERNAME": "username",
"LOGGING_DEST": "stdout",
"LOGGING_JSON": "true",
"SERVER_NAME": "kibana-1",
"SERVER_PORT": "8080",

But apparently these aren't changing anything in the running container:

"KIBANA_DEFAULTROUTE": "/app/discover",
"NEWSFEED_ENABLED": "false",
"STATUS_ALLOWANONYMOUS": "true",
"TELEMETRY_ENABLED": "false",
"TELEMETRY_OPTIN": "false"
"XPACK_APM_ENABLED": "false",
"XPACK_APM_UI_ENABLED": "false",
"XPACK_GRAPH_ENABLED": "false",
"XPACK_GROKDEBUGGER_ENABLED": "true",
"XPACK_INFRA_ENABLED": "false",
"XPACK_ML_ENABLED": "false",
"XPACK_REPORTING_ENABLED": "false",
"XPACK_SIEM_ENABLED": "false",
"XPACK_TELEMETRY_ENABLED": "false",
"XPACK_UPTIME_ENABLED": "false",

^ formatting/style copied from our Nomad-Job.

The main goal was to disable the not-needed menu-items like "Observability", "Security", "Enterprise Search".

Used Kibana version is 7.12.1. Official Elastic Docker-image

On a different Kibana instance, deployed as a Debian-package, the configuration in the kibana.yml (using the different notation) is working fine.

Is there still some sort of limited list of allowed ENV-variables for Kibana or is some undocumented prefix missing?
Regarding naming / formatting of ENV-variable names I only found this: Install Kibana with Docker | Kibana Guide [7.13] | Elastic

What could be the issue for Kibana not picking up the configuration?

@ppuschmann could you provide more information around how are you setting those variables?

@jbudz looks like some of the variables reported as "not working" are already allowed at dockerfiles/kibana-docker at 7.12 · elastic/dockerfiles · GitHub. Do you have any other ideas around why those might not be working?

The variables are set in the env-stanza in a Nomad-Job.

The above snippets are the content of

"Env": {
}

(here in JSON-format)

Even some docker inspect <containerid> shows:

"Env": [
    "ELASTICSEARCH_HOSTS=http://xxxxxxx:9200",
    "ELASTICSEARCH_PASSWORD=password",
    "ELASTICSEARCH_SSL_VERIFICATIONMODE=none",
    "ELASTICSEARCH_USERNAME=user",
    "KIBANA_DEFAULTROUTE=/app/discover",
    "LOGGING_DEST=stdout",
    "LOGGING_JSON=true",
    "NEWSFEED_ENABLED=false",
    "SERVER_NAME=kibana-1",
    "SERVER_PORT=8080",
    "SERVICE_8080_NAME=kibana-1",
    "STATUS_ALLOWANONYMOUS=true",
    "TELEMETRY_ENABLED=false",
    "TELEMETRY_OPTIN=false",
    "XPACK_APM_ENABLED=false",
    "XPACK_APM_UI_ENABLED=false",
    "XPACK_GRAPH_ENABLED=false",
    "XPACK_GROKDEBUGGER_ENABLED=true",
    "XPACK_INFRA_ENABLED=false",
    "XPACK_ML_ENABLED=false",
    "XPACK_REPORTING_ENABLED=false",
    "XPACK_SIEM_ENABLED=false",
    "XPACK_TELEMETRY_ENABLED=false",
    "XPACK_UPTIME_ENABLED=false",
    "PATH=/usr/share/kibana/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
    "ELASTIC_CONTAINER=true"
],

(plus some additional vars)

Was there any update so far?
I'd now try testing with (more) recent versions.

Apparently it is currently not possible to disable these menu-items globally in Kibana (as of 7.14.0):

The main goal was to disable the not-needed menu-items like "Observability", "Security", "Enterprise Search".

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