How to run Logstash configuration file Background?


(Kartheek Gummaluri) #1

Hi All...

I have conf file and I need to run for every 5 minutes automatically


(Magnus Bäck) #2

What's in the configuration file?


(Kartheek Gummaluri) #3

Let Say in ubuntu we have a concept called cronjob right.In windows how we need to run the configuration file in background


(Magnus Bäck) #4

If you want help you need to answer my questions.


#5

Can't you just add a schedule with cron in Logstash input?


(Kartheek Gummaluri) #6

In Configuration file I have sql jdbc input plugin and output to elasticsearch.So I need to run in background for every 5 minutes.


(Magnus Bäck) #7

Use the schedule option of the jdbc input to run the query every five minutes.

As for running Logstash in the background look into running it as a service. I believe NSSM can help out.


(Kartheek Gummaluri) #8

K thanks @magnusbaeck I will give it a try


(system) #9

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