[admin@ELK config]$ netstat -tnlp|grep java
(Notall processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp6 00127.0.0.1:9200 :::* LISTEN 22138/java
tcp6 00127.0.0.1:9300 :::* LISTEN 22138/java
1
2
3
4
5
再启动logstash出现报错
[root@ELK config]# logstash -f logstash-elasticsearch.conf
OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
Sending Logstash's logs to /usr/local/logstash-5.4.0/logs which is now configured via log4j2.properties
[2017-05-25T08:05:03,717][ERROR][logstash.outputs.elasticsearch] Unknown setting 'host' for elasticsearch
[2017-05-25T08:05:03,767][ERROR][logstash.agent ] Cannot create pipeline {:reason=>"Something is wrong with your configuration."}
[2017-05-25T08:16:32,965][INFO ][logstash.pipeline ] Pipeline main started
The stdin plugin is now waiting for input:
[2017-05-25T08:16:33,156][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
{
"@timestamp" => 2017-05-25T12:16:32.992Z, "@version" => "1", "host" => "ELK", "message" => "test"
}