W3cubDocs

/SaltStack

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

© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/beacons/all/salt.beacons.log.html