Disable X-Pack Feature in Kibana


#1

I'm looking at X-Pack Settings in Kibana | Kibana User Guide [6.5] | Elastic

How does one disable app (X-Pack Feature) such as: Canvas, Infrastructure, Logs?

Please advise.


(Mark Walkom) #2

Why do you want to do that?


#3

I'm running several Kibana instances, I only want to disable some of X-Pack Features features in single instance (not all) as described in above guide (mainly for purpose of not all Kibana users are technical savvy and these features just adds unnecessary confusion to those folks).


#4

You can try the following lines in your kibana.yml :

xpack.infra.enabled: false
xpack.logstash.enabled: false
xpack.canvas.enabled: false


#5

I tried to disable it this way, but that did not work for me(

# grep 'ENABLED=false' docker-compose.override.yml 
                        - XPACK_APM_ENABLED=false
                        - XPACK_INFRA_ENABLED=false
                        - XPACK_GRAPH_ENABLED=false
                        - XPACK_GROKDEBUGGER_ENABLED=false
                        - XPACK_ML_ENABLED=false
                        - XPACK_MONITORING_UI_ENABLED=false
                        - XPACK_CANVAS_ENABLED=false
                        - XPACK_SEARCHPROFILER_ENABLED=false
# 

Please advise.


#6

I never use env var to configure kibana so I don't known may be there is no env var for xpack. I usually mount my own kibana.yml file in Docker container.


#7

Ok, I wish there was conf.d or similar (like env vars)


(Toby McLaughlin) #8

The environment technique you posted should work. Would you mind posting your complete Compose files?


#9

Is there anything particular you're looking for? I followed Running Kibana on Docker | Kibana User Guide [6.5] | Elastic and add few environment variables (based on my actual environment) such as the one I posted in my topic earlier (nothing fancy).

some of them are working as expected, but some aren't...


(Toby McLaughlin) #10

Ah! Some of them are working. I guess XPACK_INFRA_ENABLED and XPACK_CANVAS_ENABLED are not?

They need to be added here.


(Toby McLaughlin) #11

This patch enables the options for environment-based config.

If you're interested, you can try an image with this patch applied:

docker.elastic.co/kibana/kibana:6.5.1-109