我对elasticsearch-kibana-logstash非常陌生,似乎无法找到此解决方案。在不使用kibana的情况下在kibana中创建索引
我试图创建索引,我将在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"
}
}
然后
从logstash目录bin/logstash -f test.conf
我所得到的是,我无法找到kibana新指数(指数模式部分),当我使用elasticsearch - http://localhost:9200/new-index/
它提出了一个错误,当我去http://localhost:9600/
(它显示的端口)它似乎没有任何错误
非常感谢您的帮助!
你的意思是你在'http:// localhost:9200'的索引列表中找不到你正在试图使用'logstash'创建的'new-index'? – Kulasangar
在kibana中找不到它..难道不是假设去那里...? – Dardar1991
我也尝试设置'hosts => [“http:// localhost:5601 /”]'(kibana的端口),但没有成功 – Dardar1991