How to integrate 3rd party system for event creation in ServiceNow

Pranita Bahugun
Tera Contributor

Hello all,

 

I want to integrate a 3rd party monitoring system with ServiceNow so as to get events onto the events table. What will be the best and secured option to configure it. OOB setup is not available for this.

 

Any quick help is much appreciated.

 

Thanks in advance.

 

Best Regards,

Pranita Bahuguni

1 ACCEPTED SOLUTION

ZacharyKenyon
Kilo Guru

In general, there are two methods of ingesting events into ServiceNow: 

  • You can configure your event source to send events to ServiceNow via REST API, either to a MID Server or directly to the instance (Push Connector)
  • Or you can configure ServiceNow to reach out to your event source and retrieve events from it, using REST API, a JDBC connection, or any other method that you can write a script for.  (Pull Connector)

I typically recommend using push connectors if the event source supports doing so.  Out of the box you can use the Transform Generic Events Instance or Transform Generic Events MID push connectors to take a JSON payload from an event source and populate it into the events table as a starting point. 

View solution in original post

3 REPLIES 3

ZacharyKenyon
Kilo Guru

In general, there are two methods of ingesting events into ServiceNow: 

  • You can configure your event source to send events to ServiceNow via REST API, either to a MID Server or directly to the instance (Push Connector)
  • Or you can configure ServiceNow to reach out to your event source and retrieve events from it, using REST API, a JDBC connection, or any other method that you can write a script for.  (Pull Connector)

I typically recommend using push connectors if the event source supports doing so.  Out of the box you can use the Transform Generic Events Instance or Transform Generic Events MID push connectors to take a JSON payload from an event source and populate it into the events table as a starting point. 

Hi @ZacharyKenyon ,

Thankyou for your quick response. I just had one query further, if we use Generic Event Instance Push Connector then we need to create a New Event Listener with the updated script while Header Name, Header Value and URL parameter value being the same? And can use below URL to pass the events: https://<instancename>.service-now.com/api/global/em/jsonv2

 

Please advise.

 

Thanks,

Pranita Bahuguni

 

I would recommend installing the Event Management Connectors app from the store, and then using the connector from the Push Connectors module.  For the Transform Generic Events Instance (direct to the instance) the URL would be https://<instance_name>.service-now.com/api/sn_em_connector/em/inbound_event?source=genericJson

You can use the script provided out-of-the-box, but if you want to customize how it functions, you'd create a copy of that Push Connector Listener and its accompanying Script Include, and use a different URL parameter value to differentiate it from genericJson.