I am new to ELK and recently installed ELK on Windows Server 2008 and on Windows 7 machine.
But on both the places if I open Kibana then will get a message below "Unable to fetch mapping. Do you have indices matching the pattern?"
My logstash confiuration file looks like
input {
file {
type => "AppLog"
path => "D:/LogFiles"
}
}
filter {
mutate {
add_field => [ "hostip", "%{host}" ]
}
dns {
reverse => [ "host" ]
action => replace
}
}
output {
elasticsearch {
host => "localhost"
protocol => "http"
codec => rubydebug
}
}
This URL returns "{"error":"IndexMissingException[[logstash-] missing]","status":404}"
http://localhost:5601/elasticsearch/logstash-/_mapping/field/*?ignore_unavailable=false&allow_no_indices=false&include_defaults=true
Could anyone please help me?
Thanks & regards, Narulcde.
It seems that Kibana is trying to query an index named
logstash-
and it doesn't exist, you can go to Kibana's settings and remove that index and add a new one with a wildcardlogstash-*
.