我對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