There seems to be a typo in the script: "Strating" should be "Starting", isn't it ?
Ranum's references that you mention are quite old, so there's no surprise those ideas have already turned into software.
Is it possible that you are reinventing a stripped-down version of logcheck ? Cf. https://fedoraproject.org/wiki/Changes/NoDefaultSyslog
@Stéphane: Indeed, there is a typo :)
It's true that the references are quite old, but I've rarely seen them properly applied.
And it definitely looks like I reinvented logcheck (well, this one is based on journald). I'll have a look at the logcheck rules, maybe I could turn this script into a real project.
Note: I've tried to fix your email, hope this works.
Thanks a lot for your script!
I now started a small project called journalwatch based on this script, where you can write a config file to define patterns of good messages.
More Informations here:
It also seems a patch and a hack is available for logwatch now.
I'm trying to run your script and am getting an error:
Traceback (most recent call last):
File "./journald-filter.py", line 80, in <module>
NameError: name 'firewalldStart' is not defined
I am no python expert, but I noticed that the firewalldStart variable is not defined anywhere in the script. It would really help me if this could be fixed.
@bluesfreak72: You can either define the 'firewalldStart' variable like any other regular expression defined at the beginning or simply remove the test concerning this expression.