Thanks Badger, It was just I couldn't think of that but It working as you said, but this logic is not still good for me.
As you can below see I am calling REST API based on passing 'Changed Date' as query parameter to get yesterday data and once you have the all the data from yesterday you can run Logstash every 2 minutes grabbing latest data from last 15 minutes.
but if Logstash stopped or Elasticsearch stopped I need to adjust the time to get all the data since the system is stopped.
I need help on how I can store the last 'Changed Date and time' and compare it next time with current time, to grab data from last 'Changed Date' which somehow I need to store somewhere.
It's Like what you do with JDBC input plugin and you can store the last sql time in .sql_last_value.
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.