Logstash 6.6.2 unable to read postfix maillog and there is no error in the log

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 {

}

}

The issue got resolved after changing the file path parameter (c://).

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.