Syslog Replacement #8155
Closed
tastyfrankfurt
started this conversation in
General
Replies: 1 comment 12 replies
-
If you're just looking to parse the messages that are syslog formatted you can do something like: parsed, err = parse_syslog(.message)
if err != null {
log("Message not parsed: " + string!(.message), level: "error")
}
. = merge(., parsed) |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey Guys,
We mainly deal with centos/ubuntu/redhat/rocky. These come with a default installation of rsyslog. Currently trying to work out a suitable configuration to replace the defaults outputs of these. So far i have struggled to get my head around the vrl implementation. Is someone able to help? Filtering the log is not an issue its the outputing in a format that is usable to the log files, ie data host processname proc id then the message. We are using journald as the source.
Thanks in advanced, i have also attached the outputs i am looking at.
.info;mail.none;authpriv.none;cron.none /var/log/messages
authpriv. /var/log/secure
mail.* -/var/log/maillog
cron.* /var/log/cron
.emerg :omusrmsg:
uucp,news.crit /var/log/spooler
local7.* /var/log/boot.log
Beta Was this translation helpful? Give feedback.
All reactions