I have two scripts using the HTTP plug listening on different ports (log stash is running on centos on an AWS instance)
However, when I post something on one port both scripts are getting the HTTP request.
When I use postman to post on port 31311, i get entries both index iot_collector and iot_collector-1. (To be clear, this is not my actual script but I simplified it to debug this problem.)
This is expected. Logstash has a single event pipeline that feeds events from all inputs to all filters and then to all outputs. If you don't like that you need to introduce conditionals to choose which events go where. Putting configuration into different files doesn't matter.
Thank you for the quick response.
I did notice when I ran the two scripts separately on the command line, I did not have this problem. I had the problem only when I put both scripts in /etc/logstash/conf.d (and I am assuming that in that case this is a single instance)
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.