App::Wubot::Plugin::FileTail - monitor a log file for all new lines
version 0.3.8
~/wubot/config/plugins/FileTail/bsd-01.messages.yaml --- delay: 30 path: /var/log/messages ignore: - my.ignore.string - some\sregexp\d+
Monitor a log file for new lines.
Each time a new line is seen in the file, a message will be sent containing the fields:
subject: {line}
If 'ignore' is defined in your configuration, then it should be set to an array of regular expressions. If any of the regular expressions matches, then no message will be sent. All patterns in the 'ignore' array will get joined together with '|' and evaluated as a single regular expression.
The standard monitor init() method.
The standard monitor check() method.
To install App::Wubot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Wubot
CPAN shell
perl -MCPAN -e shell install App::Wubot
For more information on module installation, please visit the detailed CPAN module installation guide.