postfix-log-parser
postfix-log-parser copied to clipboard
``` $ cat tmp.log | grep postfix-script 2020-02-04T22:22:38.982008+09:00 myhost postfix/postfix-script[10925]: stopping the Postfix mail system 2020-02-04T22:22:39.253796+09:00 myhost postfix/postfix-script[11016]: starting the Postfix mail system ``` ``` $ cat tmp.log | grep...
Whatever the year is when the postfix logs are generated the json log shows incorrect year
This fix https://github.com/youyo/postfix-log-parser/issues/3
Postfix process names can container dashes, also like my other PR I think \w is cleaner than a-z. Also using + seems more proper because we know process name must...
Also took the liberty of using \w and \d which make sense in this context, and look cleaner. As long as the character does not match space or : it's...