Sync Splunk alerts to ServiceNow on schedule

UtilitiesIT Helpdesk

What it does

When a scheduled interval triggers, this automation searches ServiceNow for alerts and customer accounts. It creates missing account and asset records so all referenced data exists in ServiceNow.

Who it's for

IT teams who need ServiceNow alerts and related records synchronized without manual data entry.

How teams use this

Keep ServiceNow records in sync with Splunk

Run this automation on a schedule to ensure every Splunk alert has matching customer and asset records in ServiceNow. The team gets complete data without manual lookups.

Prevent duplicate alerts in ServiceNow

Check for existing alerts before processing so the same Splunk event does not create multiple ServiceNow records. This keeps the alert table clean and accurate.

Add custom fields to new accounts

Extend the account creation step to include additional fields like department or cost center when the customer_account record is created. Only those extra fields need to be added to the setup.

Route alerts to different teams by severity

Filter alerts by severity level and route them to different ServiceNow queues or assign them to specific teams based on priority. The core sync logic stays the same and only the routing condition changes.

How it works

  1. Run on a specified interval. This automation starts on a schedule you set, checking for new alerts to process in ServiceNow.
  2. Search for alerts in ServiceNow. Search the em_alert table in ServiceNow to find alerts that match your criteria and need processing.
  3. Search for customer accounts. Search the customer_account table in ServiceNow by name to check if the account already exists before creating it.
  4. Create missing customer account. When no matching account is found, create a new record in the customer_account table in ServiceNow so the alert has a valid reference.
  5. Search for and create assets. Search the alm_asset table in ServiceNow by display name and create any missing product records so alerts link to valid assets.