I could do
- Code: Select all
if $programname == 'kernel' and $syslogfacility-text == 'kern' then ~
but then I would loose more than I'd like to.
So I thought that adding an action that sets a flag or a variable might be a good idea.
Other rules could then check this variable and act accordingly.
To better explain what I have in mind here's some pseudocode
- Code: Select all
# Discard the first line from the boot sequence and set a variable
if $programname == 'kernel' and $syslogfacility-text == 'kern' and $msg == 'BIOS-provided physical RAM map:' then ~
& set $a = 1
# Discard the last line from the boot sequence and clear the variable
if $programname == 'kernel' and $syslogfacility-text == 'kern' and $msg == 'EXT3 FS on xvda, internal journal' then ~
& unset $a
# Discard boot messages if the variable is set
if $programname == 'kernel' and $syslogfacility-text == 'kern' and $a == 1 then ~
I don't know if this is feasible at all or if there are already better ways to do this.
I checked the documentation and didn't find anything similar, maybe this could be of interest for other people too.
What do you think about it?


