【发布时间】:2017-05-17 06:30:24
【问题描述】:
我对 elasticsearch-kibana-logstash 非常陌生,似乎找不到解决方案。
我正在尝试创建将在 kibana 中看到的索引,而无需使用开发工具部分中的 POST 命令。
我已经设置了 test.conf-
input {
file {
path => "/home/user/logs/server.log"
type => "test-type"
start_position => "beginning"
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "new-index"
}
}
然后
bin/logstash -f test.conf 来自 logstash 目录
我得到的是,我在 kibana(索引模式部分)中找不到新索引,当我使用 elasticsearch - http://localhost:9200/new-index/ 它出现错误,当我转到 http://localhost:9600/(它显示的端口) 它似乎没有任何错误
非常感谢您的帮助!
【问题讨论】:
-
您的意思是,您在
http://localhost:9200的索引列表中找不到您尝试使用logstash创建的new-index? -
在 kibana 中找不到.. 不应该到达那里吗...?
-
我也尝试设置
hosts => ["http://localhost:5601/"](kibana的端口)也没有成功 -
不,它不会自动出现在 Kibana 中,您必须在 Management > Add New 中创建它,使用与您使用 logstash 创建的索引相同的名称。
标签: elasticsearch indexing configuration logstash kibana