I want to determine whether my Logstash instance is ready for input data processing. In a manual installation, i look at the start-up logs and figure it out. Now i want to do the same programatically, for an orchestration scenario.
How to programatically determine whether my newly spawned logstash instance is ready for input message processing. (Based on the input filter config, the Logstash start-up time varies significantly )
There's no API or similar for this, but you could set up a simple udp och tcp input that you could send a message to and route those messages to something that's convenient for you to monitor. Try to send a message once a second or so and when the message gets through you know everything is up.
You could try using the heartbeat plugin. For instance if you are using AWS Cloudformation have the heartbeat plugin hit the success url and then you would know it started.
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.