Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

.conf files - parsing a log message with rsyslog

$
0
0

I have a log file that is read by a conf file like this: (Log file being read by conf file)These logs are sent to dedicated log viewer service that tags them with a certain severity. The problem at moment is that since all the different types of logs (Info, Debug, Warning, etc.) are stored in one file, they all given the same severity. I have found this article about parsing log messages using rsyslog: https://somoit.net/linux/rsyslog-parsing-splitting-message-fields

Having not much experience with working with these conf files, how can I parse each line from the log file after it has been read in through the input field?

Is declaring variables in conf files done as described in the article? e.g. set $!malware


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>