App::Wubot::Plugin::FileTail - monitor a log file for all new lines
version 0.4.1
~/wubot/config/plugins/FileTail/bsd-01.messages.yaml --- delay: 30 path: /var/log/messages detect_rename: 0 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.
If 'detect_rename' is set to a false value in your configuration, then any apparent rename of the file will be ignored. This could be necessary in some cases for files being tailed on a network-mounted filesystem. The default is to check for renames (detect_rename=1).
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.