Monitor multiple Logstash instances running on the same server

You can try this script