$ModLoad omprog $actionomprogbinary /opt/omprog.py :msg, contains, "sometext" :omprog:;RSYSLOG_TraditionalFileFormatomprog.py
line = sys.stdin.readline() if line: check(line)
Fedora, Red Hat, CentOS, Linux
$ModLoad omprog $actionomprogbinary /opt/omprog.py :msg, contains, "sometext" :omprog:;RSYSLOG_TraditionalFileFormatomprog.py
line = sys.stdin.readline() if line: check(line)