salt.beacons.log module

Beacon to fire events at specific log messages.

New in version 2017.7.0.

salt.beacons.log.beacon(config)

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

salt.beacons.log.validate(config)

Validate the beacon configuration