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