NAME

App::Wubot::Plugin::FileTail - monitor a log file for all new lines

VERSION

version 0.3.1

SYNOPSIS

~/wubot/config/plugins/FileTail/bsd-01.messages.yaml

---
delay: 30
path: /var/log/messages
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.

SUBROUTINES/METHODS

init( $inputs )

The standard monitor init() method.

check( $inputs )

The standard monitor check() method.