Change logstash logs and temp location


(Karasmeitar) #1

Hi all,
I install logstash on ubunto as a service and i want to change the logs location and the location of the temp folder(were logsrash save the files before execute).
How can i do it?


(Mark Walkom) #2

For the first part see https://www.elastic.co/guide/en/logstash/current/_command_line_flags.html

Can you clarify what you mean by the second part?


(Karasmeitar) #3

i have config file that get files as an input from s3 and add the logs to elasticsearch.
logstash will download the file from s3 to temp folder and then process the file and create bulk operation. after the bulk operation the file deleted from the temp directory and delete from the s3 bucket.
i need to change the folder for the file that are download from the s3.
about the log that you said can i changed it in the /etc/init.d/logstash file?

10x!


(Mark Walkom) #4

You can set the log via run time options in /etc/default/logstash.

For the temp directory, the docs have what you want https://www.elastic.co/guide/en/logstash/current/plugins-inputs-s3.html#plugins-inputs-s3-temporary_directory


(Karasmeitar) #5

10x!!


(Mark Walkom) #6

Don't thank me, thank the docs :stuck_out_tongue:


(system) #7