Logstash tcpinput不传递给elasticsearch
在使用文件input,logstash-forwarder成功设置ELK并从几台服务器看到Kibanastream中的日志之后,我试图build立一个TCPinput: tcp { codec => "json" host => "localhost" port => 9250 tags => ["sensu"] } 发件人是敏感的,而且消息确实是JSON – 用tcpdump命令检查了这个。 Logstash日志表示连接被接受: {:timestamp=>"2015-06-15T14:03:39.832000+1000", :message=>"Accepted connection", :client=>"127.0.0.1:38065", :server=>"localhost:9250", :level=>:debug, :file=>"logstash/inputs/tcp.rb", :line=>"146", :method=>"client_thread"} {:timestamp=>"2015-06-15T14:03:39.962000+1000", :message=>"config LogStash::Codecs::JSONLines/@charset = \"UTF-8\"", :level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"} {:timestamp=>"2015-06-15T14:03:39.963000+1000", :message=>"config LogStash::Codecs::Line/@charset = \"UTF-8\"", :level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"} 然而,数据似乎没有进一步的,在基巴纳找不到。 我去了其他的input,然后观察弹性search(curl'localhost:9200 / _cat / shards')中的碎片,它的大小没有增加。 根据这个环节,我走在正确的道路上,但可能只是做一些愚蠢的地方…在此先感谢。 logstash.conf: […]