How to run Logstash configuration file Background?

Hi All...

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

What's in the configuration file?

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

If you want help you need to answer my questions.

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

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

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.

K thanks @magnusbaeck I will give it a try

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