Commit 038ad579 by Carson Gee

Add tracking log intelligence to ELK

parent cdc6cc63
......@@ -20,6 +20,16 @@ filter {
date {
match => [ "syslog_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss" ]
}
# Try and parse the tracking log json
# 142 is syslog facility 17 (local1) and Informational.
# This is used to reduce the number of errors in json parsing as
# tracking uses that facility and priority by default.
if "142" in [syslog_pri] {
json {
source => "syslog_message"
target => "tracking"
}
}
if !("_grokparsefailure" in [tags]) {
mutate {
replace => [ "@source_host", "%{syslog_hostname}" ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment