ElasticSearch - 显示空数据

时间:2014-05-30 17:18:30

标签: java logging elasticsearch logstash kibana

我也是Elasticsearch,Logstash和Kibana的新手。在一定程度上学习后,

我已熟悉基本操作:

我正在启动一个Elasticsearch服务器,它说:

[2014-05-30 13:10:56,578][INFO ][node                     ] [Strobe] version[1.2.0], pid[7972], build[c82387f/2014-05-22T12:49:13Z]
[2014-05-30 13:10:56,579][INFO ][node                     ] [Strobe] initializing ...
[2014-05-30 13:10:56,583][INFO ][plugins                  ] [Strobe] loaded [], sites []
[2014-05-30 13:10:59,855][INFO ][node                     ] [Strobe] initialized
[2014-05-30 13:10:59,855][INFO ][node                     ] [Strobe] starting ...
[2014-05-30 13:10:59,990][INFO ][transport                ] [Strobe] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/10.35.143.93:9300]}
[2014-05-30 13:11:03,170][INFO ][cluster.service          ] [Strobe] new_master [Strobe][bSSS4UGeRLqpziwDCQQgjA][20EX17512][inet[/10.35.143.93:9300]], reason: zen
[2014-05-30 13:11:03,210][INFO ][discovery                ] [Strobe] elasticsearch/bSSS4UGeRLqpziwDCQQgjA
[2014-05-30 13:11:03,258][INFO ][gateway                  ] [Strobe] recovered [0] indices into cluster_state
[2014-05-30 13:11:03,298][INFO ][http                     ] [Strobe] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/10.35.143.93:9200]}
[2014-05-30 13:11:03,300][INFO ][node                     ] [Strobe] started

接下来,我启动logstash,我已将其配置为将数据输出到Elasticsearch服务器。这是logstash.conf:

input {
    file {
        path => [ "C:\Users\jimmyjax\Downloads\logstash\bin\test.log" ]
    }
}
output {
    elasticsearch {
        protocol => "http"
        host => "localhost"
        port => "9200"
        codec => "rubydebug"
        index => "logstash-%{+YYYY.MM.dd}"
    }
}

当我说时,我能够确认Elasticsearch实际上是从日志中接收数据 curl "http://localhost:9200/_search"。 它返回了日志文件中的内容。

现在最大的问题是,当我转到localhost:9200时,我看到elasticsearch显示的虚拟数据,而Kibana仪表板没有显示数据。

可能有什么不对?请帮帮我

0 个答案:

没有答案