i want index multiple log with one input but logstash not read files
my config :
input {
file {
path => "C:/data1/log/*.log"
start_position => "beginning"
sincedb_path => "/dev/null"
type => "bctLog"
}
}
filter {
grok {
match => { "message" => "%{MONTH:month} %{NUMBER:day}, %{YEAR:year} %{HOUR:hour}:%{MINUTE:minute}:%{SECOND:second}:%{NUMBER:milli}: %{LOGLEVEL:log-level} [%{DATA:threadName}\] took %{NUMBER:duration} ms." }
}
mutate {
add_field => {
"eventTime" => "%{hour}:%{minute}:%{second} %{month} %{day} %{year}"
}
}
mutate {
convert => { "duration" => "integer" }
}
date {
match => [ "eventTime" , "HH:mm:ss MMM d yyyy" , "HH:mm:ss MMM dd yyyy" ]
locale => "en"
}
mutate {
remove_field => [ "year", "month", "day", "time","message","frmwk","host","path","hour","minute","second","milli"]
}
}
output {
elasticsearch {
index => "cfrbif-multiple"
hosts => "localhost:9200"
}
stdout { codec => json }
}
Please help.
Thanks