Subject: | don't try to match undefined log messages |
The following error filled up my log:
Error in consume_message callback: Use of uninitialized value $log_line in pattern match (m//) at /home/user/perl5/perlbrew/perls/LOGGING/lib/site_perl/5.16.3/Message/Passing/Filter/Regexp.pm line 93.
Please add a check if $from exists in the message and that $log_line is defined and skip the filter in this case.
I have multiple Regex filters for different syslog formats chained so it happens that some don't match because the source field ($from) doesn't exist or is empty.