input {
file {
path =>"C:\elk\router"
type => "logs"
start_position => beginning
sincedb_path => "C:\elkstack\ELK\logstash-5.1.2\data\plugins\inputs\file.sincedb_5eed3ff4207ce42c69ff2b34b669aa79"
}
}
filter {
mutate {
gsub => ["message","|"," "]
}
grok {
match => ['message',' =%{DATESTAMP:time} : %{UUID:id} %{NUMBER:dateconsommation} %{NUMBER:datefintrait} %{NUMBER:delai} %{WORD:nomFlux} %{WORD:evt} %{GREEDYDATA:lst} %{NUMBER:reforigin} %{NOTSPACE:contractoidval} %{DATA:useroidval} %{NOTSPACE:servname} ']
}
}
output {
elasticsearch {
hosts => "localhost:9200"
index => "router-%{+YYYY.MM.dd}"
template => "C:\elkstack\ELK\elasticsearch-5.1.2\config\router_template.json"
template_name => "router_template"
}
}
is there any thing wrong plzz !!