Disable X-Pack monitoring in Logstash conf

Fixes #98
This commit is contained in:
Antoine Cotten 2017-03-02 11:22:39 +01:00
parent 6cd82cf47a
commit 52f43a4a72
4 changed files with 15 additions and 8 deletions

View File

@ -90,11 +90,9 @@ The Kibana default configuration is stored in `kibana/config/kibana.yml`.
## How can I tune Logstash configuration? ## How can I tune Logstash configuration?
The Logstash container is using the [shipped configuration](https://github.com/elastic/logstash-docker/blob/master/build/logstash/config/logstash.yml). The logstash configuration is stored in `logstash/config/logstash.yml`.
If you want to override the default configuration, create a file `logstash/config/logstash.conf` and add your configuration in it. It is also possible to map the entire `config` directory inside the container in the `docker-compose.yml`. Update the logstash container declaration to:
Then, you'll need to map your configuration file inside the container in the `docker-compose.yml`. Update the logstash container declaration to:
```yml ```yml
logstash: logstash:
@ -111,7 +109,7 @@ logstash:
``` ```
In the above example the folder `logstash/config` is mapped onto the container `/usr/share/logstash/config` so you In the above example the folder `logstash/config` is mapped onto the container `/usr/share/logstash/config` so you
can create more than one file in that folder if you'd like to. However, you must be aware that config files will be read from the directory in alphabetical order. can create more than one file in that folder if you'd like to. However, you must be aware that config files will be read from the directory in alphabetical order, and that Logstash will be expecting a [`log4j2.properties`](https://github.com/elastic/logstash-docker/tree/master/build/logstash/config) file for its own logging.
## How can I specify the amount of memory used by Logstash? ## How can I specify the amount of memory used by Logstash?

View File

@ -20,6 +20,7 @@ services:
logstash: logstash:
build: logstash/ build: logstash/
volumes: volumes:
- ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml
- ./logstash/pipeline:/usr/share/logstash/pipeline - ./logstash/pipeline:/usr/share/logstash/pipeline
ports: ports:
- "5000:5000" - "5000:5000"

View File

@ -5,9 +5,6 @@
server.name: kibana server.name: kibana
server.host: "0" server.host: "0"
elasticsearch.url: http://elasticsearch:9200 elasticsearch.url: http://elasticsearch:9200
elasticsearch.username: elastic
elasticsearch.password: changeme
xpack.monitoring.ui.container.elasticsearch.enabled: false
## Disable X-Pack ## Disable X-Pack
## see https://www.elastic.co/guide/en/x-pack/current/xpack-settings.html ## see https://www.elastic.co/guide/en/x-pack/current/xpack-settings.html

View File

@ -0,0 +1,11 @@
---
## Default Logstash configuration from logstash-docker.
## from https://github.com/elastic/logstash-docker/blob/master/build/logstash/config/logstash.yml
#
http.host: "0.0.0.0"
## Disable X-Pack
## see https://www.elastic.co/guide/en/x-pack/current/xpack-settings.html
## https://www.elastic.co/guide/en/x-pack/current/installing-xpack.html#xpack-enabling
#
xpack.monitoring.enabled: false