Symfony Logstash gelf未接收消息
我正试图将我的symfony2日志发送到logstash服务器,但该服务器未收到日志=/ 我在Symfony Logstash gelf未接收消息,symfony,
elasticsearch,logstash,logstash-configuration,monolog,Symfony,
elasticsearch,Logstash,Logstash Configuration,Monolog,我正试图将我的symfony2日志发送到logstash服务器,但该服务器未收到日志=/ 我在/etc/logstash/conf.d/logstash.conf中的logstash conf是 input { gelf { port => "12201" host => "0.0.0.0" } } output { elasticsearch { hosts => ["localhost:9200"]
/etc/logstash/conf.d/logstash.conf
中的logstash conf是
input {
gelf {
port => "12201"
host => "0.0.0.0"
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
}
stdout {
debug => true
debug_format => "json"
}
}
/var/log/logstash中的文件为空。通过独白,我捕捉到了发送的字符串:
{"_facility":"request",
"_ctxt_route_parameters":"...",
"_ctxt_request_uri":"...",
"version":"1.0",
"short_message":"...",
"full_message":null,
"host":"dev",
"timestamp":1462196712,
"level":6}
我的配置有什么问题?我测试了elasticsearch索引:
curl 'localhost:9200/_cat/indices?v'
health status index pri rep docs.count docs.deleted store.size pri.store.size
yellow open .kibana 1 1 1 0 3.1kb 3.1kb
感谢您的帮助您在标准输出中看到数据了吗?你在运行什么版本的Logstash?@Val我在std输出中没有看到任何东西。Logstash版本是
2.3.2
,那么它可能意味着gelf没有接收到任何事件。你怎么知道日志正在生成?我遇到了同样的问题,无法让它工作。数据包已发送,但我在elasticsearch中未看到它。嗯,我也没有在iptraf实用程序中看到它。你看到标准输出中的数据了吗?你在运行什么版本的Logstash?@Val我在std输出中没有看到任何东西。Logstash版本是2.3.2
,那么它可能意味着gelf没有接收到任何事件。你怎么知道日志正在生成?我遇到了同样的问题,无法让它工作。数据包已发送,但我在elasticsearch中未看到它。嗯,我在iptraf实用程序中也没有看到它。。