I have configured the logstash.conf file and run there is no error found. but it does'nt read the log file. Kindly help to fix this.
logstash.config file details below:
input {
file {
type => "postfix"
path => "d:\maillog\maillog"
exclude => "*.gz"
start_position => "beginning"
}
}
filter {
if [type] == "postfix" {
grok {
patterns_dir => ["c:\logstash\config\patterns"]
match => { "message" => ["%{PF}", "%{DOVECOT}" ] }
}
date {
match => [ "timestamp", "MMM dd HH:mm:ss" ]
}
}
I wanted to monitor metrics and health of logstash
metrics {
meter => "events"
add_tag => "metric"
}
}
output {
stdout {
}
}