Use the Elastic Stack monitoring features to gain insight into the health of Logstash instances running in your environment.
For an introduction to monitoring your Elastic stack, see Monitoring a cluster.
Configuring X-Pack monitoring for Logstashedit
Make sure monitoring is enabled on your Elasticsearch cluster. Then configure one of these methods to collect Logstash metrics: