How schedule periodic task but execute when Logstash instance starts?

How schedule periodic task but execute on Logstash instance starts?

I need to schedule tasks to execute every hour, but I need force re-execute this when Logstash service restarted.
How to do this?

Thank you!

Does your configuration have an input that has a schedule option? If so, what does it look like?

Hi,
My schedule setting is this.
5 min recorrence, but I would like execute job when logstash service restart.
Is there any way?

You could try adding a second http_poller input, with a schedule of at => "now". That would execute once when logstash started. You would have to replicate all the urls configuration.