Logstash gelf没有收到消息

时间:2016-05-13 10:07:21

标签: 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"]
    }
    stdout {
        debug => true
        debug_format => "json"
    }
}

/ var / log / logstash中的文件为空。随着monolog,我抓住了发送的字符串:

{"_facility":"request",
"_ctxt_route_parameters":"...",
"_ctxt_request_uri":"...",
"version":"1.0",
"short_message":"...",
"full_message":null,
"host":"dev",
"timestamp":1462196712,
"level":6}

我的配置有什么问题?我测试了弹性搜索索引:

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

感谢您的帮助

0 个答案:

没有答案