Copy default Logstash and Kibana config files

Facilitates customization.
Ref #211
parent c0ea2bd5
......@@ -135,42 +135,13 @@ configuration of a component.
### How can I tune the Kibana configuration?
The Kibana container is using the [shipped
configuration](https://github.com/elastic/kibana-docker/blob/master/build/kibana/config/kibana.yml).
If you want to override the default configuration, create a file `kibana/config/kibana.yml` and add your configuration
in it.
Then, you'll need to map your configuration file inside the container in the `docker-compose.yml` file. Update the
kibana service declaration to:
```yml
kibana:
volumes:
- ./kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml
```
The Kibana default configuration is stored in `kibana/config/kibana.yml`.
It is also possible to map the entire `config` directory instead of a single file.
### How can I tune the Logstash configuration?
The Logstash container is using the [shipped
configuration](https://github.com/elastic/logstash-docker/blob/master/build/logstash/config/logstash.yml).
If you want to override the default configuration, create a file `logstash/config/logstash.yml` and add your
configuration in it.
Then, you'll need to map your configuration file inside the container in the `docker-compose.yml` file. Update the
Logstash service declaration to:
```yml
logstash:
volumes:
- ./logstash/pipeline:/usr/share/logstash/pipeline
- ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml
```
The Logstash configuration is stored in `logstash/config/logstash.yml`.
It is also possible to map the entire `config` directory instead of a single file, however you must be aware that
Logstash will be expecting a
......
......@@ -6,7 +6,7 @@ services:
build:
context: elasticsearch/
volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
ports:
- "9200:9200"
- "9300:9300"
......@@ -20,6 +20,7 @@ services:
build:
context: logstash/
volumes:
- ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
- ./logstash/pipeline:/usr/share/logstash/pipeline:ro
ports:
- "5000:5000"
......@@ -33,6 +34,8 @@ services:
kibana:
build:
context: kibana/
volumes:
- ./kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml:ro
ports:
- "5601:5601"
networks:
......
Ensure the existence of the parent folder.
---
## Default Kibana configuration from kibana-docker.
## from https://github.com/elastic/kibana-docker/blob/master/build/kibana/config/kibana-x-pack.yml
#
server.name: kibana
server.host: "0"
elasticsearch.url: http://elasticsearch:9200
elasticsearch.username: kibana
elasticsearch.password: changeme
xpack.monitoring.ui.container.elasticsearch.enabled: true
Ensure the existence of the parent folder.
---
## Default Logstash configuration from logstash-docker.
## from https://github.com/elastic/logstash-docker/blob/master/build/logstash/config/logstash-x-pack.yml
#
http.host: "0.0.0.0"
path.config: /usr/share/logstash/pipeline
xpack.monitoring.elasticsearch.url: http://elasticsearch:9200
xpack.monitoring.elasticsearch.username: logstash_system
xpack.monitoring.elasticsearch.password: changeme
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment