Question:
- How to setup multiple http inputs of logstash ELK stack
What I already have:
- Working ELK docker image based on: https://github.com/deviantony/docker-elk
- Working logstash-input-http-plugin based on: https://www.elastic.co/blog/introducing-logstash-input-http-plugin
- My logstash.conf file looks like:
input { http { host => "0.0.0.0" port => "5000" } } output { elasticsearch { hosts => "elasticsearch:9200" } }
- And I can easly send my Component logs (as JSON) using postman on URL: http://localhost:5000
What I need:
- Multiple http inputs because I have multiple Components - something like (but second input does not listen to requests):
input { http { host => "0.0.0.0" port => "5000" } http { host => "0.0.0.0" port => "7070" } }
- I have to distinguish those Components in Kibona
typesettings in each of yourhttpinputs to distinguish where the documents came from - Val