Logstash docker file input and file output


#1

Hi,
I am new to Logstash, trying my hand with docker image.
I have followed instructions from official documentation and was able to pull the image successfully.

Through this command:
docker run --rm -it -v C:\Users\xyz\Desktop\Docker:/usr/share/logstash/pipeline/ docker.elastic.co/logstash/logstash:5.5.1

I understood that I am mapping configuration folder of pipeline to "C:\Users\xyz\Desktop\Docker" folder on my windows PC.

But my question is I have to give a file input to Logstash docker and want it to write back to a file.
What path should I mention inside configuration file to read logs. and how do i make it available to Logstash docker to read and write from?


#2

My bad wrong path.

mount the path you have your input files and output files using multiple "-v" and use those paths in pipeline conf file.


(Mark Walkom) #3

Thanks for sharing the solution! :smiley:


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.