logAlert

Used for log detection.
Source interceptor.
Please refer to Log Alarm for usage examples.

Example

  1. interceptors:
  2. - type: logAlert
  3. matcher:
  4. contains: ["error", "err"]

matcher

fieldtyperequireddefaultdescription
matcher.containsstring arrayfalsecheck whether log contains string
matcher.regexpstring arrayfalsecheck whether log matches regexp pattern
matcher.targetstringfalsebodythe field of log data to check

labels

fieldtyperequireddefaultdescription
labels.fromstring arrayfalseadditional labels from the header. Fill in the specific key name in the header.