Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Call

SyntaxDescription
call {function} ...Call a site script function
  • Multiple functions can be called in a single rule
  • Use the call action to forward alerts to third-party integrations

Configure site-scripts via Admin > API > Site Scripting

Configure integrations via Admin > Alerting > Integration Settings

Examples

  • Alert on Ping events using alert_log_event
    * * ping4 PING.icmpState = call custom_log_event

  • Call multiple site-script functions
    * * ping4 PING.icmpState = call custom_log_event custom_alert

  • Forward alert to Slack
    * * ping4 PING.icmpState = call post_alert_slack