NAME
App::Wubot::Plugin::FileTail - monitor a log file for all new lines
VERSION
version 0.4.0
SYNOPSIS
~/wubot/config/plugins/FileTail/bsd-01.messages.yaml
---
delay: 30
path: /var/log/messages
detect_rename: 0
ignore:
- my.ignore.string
- some\sregexp\d+
DESCRIPTION
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).