RsyslogConf - file
The rsyslog configuration files can include statements with two different line based formats along with snippets of ‘RainerScript’ that can span multiple lines.
Due to high parsing complexity, this parser presents a simple line-based view of the file that meets the needs of the current rules.
Parses /etc/rsyslog.conf content.
Skips lines that begin with hash (“#”) or are only whitespace.
List of lines in the file that don’t start with ‘#’ and aren’t whitespace.
>>> type(rsysconf) <class 'insights.parsers.rsyslog_conf.RsyslogConf'> >>> len(rsysconf) 13 >>> rsysconf 'authpriv.* /var/log/secure'
This method must be implemented by classes based on this class.