I am having some problem when delploying logstash in docker. When I run container and go inside, I don't see
/etc/logstash/ directory. How can I configure inputs, filters, and outputs?
@Michael_Fairchild How I can copy it to
/usr/share/logstash/pipeline/, can you give me an example please
In your Dockerfile, you can do something like
ADD logstash.conf /usr/share/logstash/pipeline. https://www.elastic.co/guide/en/logstash/current/docker-config.html has additional examples.
Thank you for your response,
I don't have a dockerfile , I work just with docker-compose.yml file
is it necessary to use dockerfile for logstash configuration or I can do that in docker-compose.yml
You'll need to add a volume to the config directory and define the command to read that config.
volumes: - ./:/config-dir command: logstash -f /config-dir/logstash.conf
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.