Hello,
I am new to Logstash and I am trying to read my logfiles. While I can parse single logs using stdin logstash does not seem to scan the configured files.
my .config file looks like this:
input {
file {
path => ["D:\Logs*.txt"]
start_position => "beginning"
ignore_older => 3600
}
}
filter {
grok {
match => { "message" => "\A%{BIND9_TIMESTAMP:dns_timestamp} client <%{BACULA_HOST:IntOrExt}_%{USER:User}>#%{INT:Int}: query: %{HOSTNAME:hostname} %{CRON_ACTION:Action}+"}
}
date {
match => ["dns_timestamp", "dd-MMM-yyyy HH:mm:ss.SSS"]
}
}
output {
elasticsearch {
hosts => [ "localhost:9200" ]
index => "wabern"
}
stdout {
}
}