Tag: elasticsearch logstash grok

我既不能过滤也不能过滤通过LogStash保存到ElasticSearch的文档

我想这个问题可能与我的logstash.conf有关,但我不知道该怎么做。 我发现很好的教程解释如何使用ElasticSearch,但在我的情况下,所有的数据将通过LogStash来自NodeJs。 我search关于启用fieldData,但我不知道如何在我的logstash.conf中做到这一点。 我应该创build一个索引模板? 如果这样怎么样? 上下文是我想每次用户访问我们的应用程序时logging,然后根据每个月的访问数量logging他/她。 logstash.conf input { tcp { port => 5000 type => cpfTipo } } filter { json { source => "message" } } output { elasticsearch { hosts => ["localhost:9200"] index => "mycostumer_indice" document_type => "cpfTipo"} } 暂定过滤: 1) curl -XGET http://127.0.0.1:9200/mycostumer_indice/cpfTipo/_search -d '{ "query": { "filtered": { "query": { […]