Logstash on Docker-compose ? How can we setup the config file
version: "3"
services:
elasticsearch:
image: elasticsearch
ports:
- "9200:9200"
- "9300:9300"
kibana:
image: kibana
ports:
- "5601:5601"
links:
- elasticsearch
depends_on:
- elasticsearch
logstash:
image: logstash
links:
- elasticsearch
volumes:
- ./:/config-dir
command: logstash -f /config-dir/logstash.conf
depends_on:
- elasticsearch
Just use the section/s from above you need
1 Like
Thanks @Jymit Can you tell Where can i specify my logstash config file
I generally recommend using a bind-mounted configuration file.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.