I want to use the Http_poller input plugin to call a REST API only once. The actual scheduling is done outside of Logstash (Docker).
To make this happen, I set the schedule attribute to { "in" => "0" }, which indeed triggers the request once and immediately. Unfortunately the Http_poller plugin does not terminate, so Logstash does not terminate, so the Docker container does not terminate, which is bad in my situation.
Am I doing something wrong? Can you help me out?
Thanks for the hint, but parsing the output of curl in a pain with multiline codec or the like.
Any ideas why Http_poller is not working the way we expect it?
It wasn't designed as a run once approach, the assumption is that you will want to continually connect to get the data. It might be worth raising a feature request to cater for this behaviour if you want it.
You may also want to look at the exec input and use curl to get it that way.
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.