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!
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?
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.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.