I have an API call to JIRA which should run only once every 4 weeks. I'm using logstash http_poller to fetch the data from JIRA.
The schedule with http_poller does not allow a complex cron schedule so I was planning on setting up an external cron. For this, I need the http_poller to run only once which works with using schedule as {"in" => "0"} but logstash is not terminated after the run.
Is there a way to terminate logstash after http_poller runs once. Or is there an alternative input plugin to fetch API data?
Thanks a lot @Badger! I've tried to implement this solution and I'm getting the below error.
error during HTTP request {:url=>"URL_with_query_params", :code=>415, :response=>""}
The call that I'm making is a GET call to JIRA REST API and here's the configuration I'm using. The URL does have query parameters and I've tried to use query property to define the parameters as key-value pairs but no luck.
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.