Use this URL format to push events from Sumo logic to the ServiceNow
Instance .https://<username>:<password>@<instance-name>.service-now.com/api/sn_em_connector/em/inbound_event?source=sumologic
Note: Use a credential having the evt_mgmt_integration role as the username
and password.
In the Payload section, use the following template:
{
"type": "{{MonitorType}}",
"node": "{{ResultsJSON._sourceHost}}",
"metric_name": "{{Name}}",
"description": "monitor Query: {{Query}}\n Trigger Condition:{{TriggerCondition}}\n Trigger Value:{{TriggerValue}}\n Trigger Time Range:{{TriggerTimeRange}}\n View Trigger Query:{{TriggerQueryURL}}\n View Monitor:{{QueryURL}} \n Results:{{ResultsJSON}}",
"name": "{{Name}}",
"short_description": "{{Description}}",
"MonitorType": "{{MonitorType}}",
"Query": "{{Query}}",
"QueryURL": "{{QueryURL}}",
"ResultsJson": "{{ResultsJson}}",
"NumQueryResults": "{{NumQueryResults}}",
"Id": "{{Id}}",
"DetectionMethod": "{{DetectionMethod}}",
"TriggerType": "{{TriggerType}}",
"TriggerTimeRange": "{{TriggerTimeRange}}",
"time_of_event": "{{TriggerTime}}",
"TriggerCondition": "{{TriggerCondition}}",
"TriggerValue": "{{TriggerValue}}",
"TriggerTimeStart": "{{TriggerTimeStart}}",
"TriggerTimeEnd": "{{TriggerTimeEnd}}",
"SourceURL": "{{SourceURL}}",
"alertResponseUrl": "{{alertResponseUrl}}"
}
Log Monitors Type events can be created without CI binding since you’re
receiving the node value as "node": "{{ResultsJSON._sourceHost}}" in the
event payload from Sumo Logic. You can create events but you can’t bind them
since you don’t get them as host names for the log monitor type. A push
connector parameter was created - “create_log_monitorType_events” with a
value of False. If the param value is False, the payload is ignored, and
“log” events aren’t created. If you change the param to True, events are
created, and then you must define event rules for CI binding.
Refer to the following ServiceNow Severity Mapping with
Sumo logic TriggerType table:
Table 1. Severity Mapping
| Sumo Logic Trigger Type |
Severity |
| Critical |
Critical |
| Warning |
Minor |
| MissingData |
Warning |
| ResolvedCritical/ResolvedWarning/ResolvedMissingData |
Clear |