Beacon to fire events at specific log messages.
New in version 2017.7.0.
Read the log file and return match whole string
beacons:
log:
- file: <path>
- tags:
<tag>:
regex: <pattern>
Note
regex matching is based on the re module
The defined tag is added to the beacon event tag. This is not the tag in the log.
beacons:
log:
- file: /var/log/messages #path to log.
- tags:
goodbye/world: # tag added to beacon event tag.
regex: .*good-bye.* # match good-bye string anywhere in the log entry.
Validate the beacon configuration