java - How to config logstash to listening on multiple tcp port? -


i use logstash collect logs other component in project. log divided 2 type, app_log , sys_log, app_log sent tcp port 5000 , sys_log sent 5001. following logstash input config:

input {   tcp {     port => 5000     type => app_log   }   tcp {     port => 5001     type => sys_log   } } 

after started logstash, port 5000 , 5001 both activated. tcp6 0 0 :::5000 :::* listen 7650/java
tcp6 0 0 :::5001 :::* listen 7650/java

but receive log port 5000 normally.when sending log port 5001, log not collected, there configured wrongly?


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -