Reputation: 103
I have an issue where logstash in not picking up the log file and pushing thing logs to Kibana. I have to restart the logstash process each time before it is picked up.
See example of logstash conf file
input {
# one entry per topic file
file {
path => "/tmp/log-completed-backups.log"
start_position => beginning
type => "checkingfiles"
}
}
filter {
if "checkingfiles" in [type] {
csv {
separator => " "
columns => ['cdate', 'ctime', 'bmonth', 'bday']
add_tag => ["idam_filtered"]
}
mutate {
rename => { "cdate" => "cdate" }
rename => { "ctime" => "ctime" }
rename => { "bmonth" => "bmonth" }
rename => { "bday" => "bday" }
add_field => {
"namespace" => "${LB_SITE_NAME}"
}
}
}
}
Upvotes: 0
Views: 441