Automatic restart of logstash

I would like the logstash service to restart automatically every Tuesday at 8:00 p.m.
What type of configuration can you offer me?

You would have to do this externally to the service. Every service manager I am familiar with allows services to be stopped and started using the command line. Just put a stop and start in a script and then schedule that.

okay
Can you help me with a sample configuration?

I have no idea what scheduler or service manager you are using, so no, I cannot.

Using a crontab for example

That would be something like

0 19 * * 2 systemctl restart logstash

in root's crontab.

Thank you Badger.
I will try this.

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