Hallo Everbody
I have installed ELK and FIlebeat on my local machine. ELK is working fine with Fileinput and filter but Filebeat is not working properly. Filebeat configurations are working fine and it send data to Logstash but Logstash throw exception "index_not_found_exception => no such index"
Here is the logstash exception log
[2017-01-19T11:53:20,213][WARN ][logstash.outputs.elasticsearch] Failed action. {:status=>404, :action=>["index", {:_id=>nil, :_index=>"kudofilebeat-2017.01.13", :_type=>"KudoAppLog", :_routing=>nil}, 2017-01-13T06:55:22.821Z %{host} Message=Starting KuDo Application...], :response=>{"index"=>{"_index"=>"kudofilebeat-2017.01.13", "_type"=>"KudoAppLog", "_id"=>nil, "status"=>404, "error"=>{"type"=>"index_not_found_exception", "reason"=>"no such index", "resource.type"=>"index_expression", "resource.id"=>"kudofilebeat-2017.01.13", "index_uuid"=>"_na_", "index"=>"kudofilebeat-2017.01.13"}}}}
Here is my Filebeat.yml file
filebeat.prospectors:
- input_type: log
paths:
- D:\logs\tmp\*.log
#================================ General =====================================
name: "kudobeat"
fields:
env: local
#----------------------------- Logstash output --------------------------------
output.logstash:
hosts: ["localhost:5044"]
Here is my Logstash conf
input {
beats {
port => 5044
type => "KudoAppLog"
codec => multiline {
pattern => "^%{WORD};"
negate => true
what => "previous"
}
}
}
filter {
mutate {
gsub => ["message", "\n", " "]
gsub => ["message", "\t", " "]
}
grok {
match => ["message", "(?m)%{WORD:LOGLEVEL}\;%{WORD:Machine}\;%{GREEDYDATA:Logtimestamp}\;%{WORD:}\=;%{WORD:}\=;%{WORD:}\=;%{WORD:}\;%{WORD:}\=;%{GREEDYDATA:message}"]
overwrite => [ "message" ]
add_field => { "ApplicationName" => "Kudo" }
remove_field => ["WORD"]
}
#Set the Event Timesteamp from the log
date {
match => ["Logtimestamp","dd.MM.yyyy HH:mm:ss,SSS"]
remove_field => ["Logtimestamp"]
}
}
output {
if [type] == "KudoAppLog" {
elasticsearch {
hosts => "localhost:9200"
manage_template => false
index => "kudofilebeat-%{+YYYY.MM.dd}"
}
}
stdout { codec => rubydebug }
}
this is how my logline looks like which filebeat sending to logstash.
Information;OLESRV741;11.01.2017 09:19:19,546;Area=;SubArea=;SessionId=;StepId;User=;Message=Starting KuDo Application...
i am using ELK 5.1.2 and Filebeat 5.1
can any one tell me why don't it create index in Elasticsearch. under following URL i fond all indexes except "kudofilebeat-*"
http://localhost:9200/_cat/indices?v
Thanks in advance
regards