Getting ticket data from ServiceNow
The following sections provide details on the steps required to set up this integration:
- Prerequisites
- To install the ServiceNow connector
- To install the license
- Getting your TrueSight Intelligence account API token
- To validate the configuration
- To upload the first configuration item to TrueSight Intelligence
- To validate the uploaded data in TrueSight Intelligence
- To customize the field mapping
Prerequisites
- The host machine must have a minimum of 1 GB memory, 1 GHz processor speed, and 20 MB disk space.
- Any currently supported non-mobile Microsoft Windows or LINUX operating system.
- The host must have java version 1.7+ that is executable from the command line.
- You must have obtained the connector and license by sending an email to help@truesight.bmc.com.
To install the ServiceNow connector
The ServiceNow connector can run from any directory with proper permissions.
- Send an email to help@truesight.bmc.com to get the link for downloading the installation file.
Download the Data_Pump_for_TSI.zip file to a folder on your computer.
- Right-click on the Data_Pump_for_TSI.zip and select Extract All... to open the Extract Compressed (Zipped) Folders dialog.
- Click Browse and select the folder where you want to install the ServiceNow connector.
- Click Extract to install the integration.
After the installation, the directory structure inside of the ServiceNow connector installation directory is as follows:
Folder name | Description |
---|---|
bin | The main connector .bat programs |
conf | The .map files and related .conf files |
dat | Timestamps and other data |
lib | The api code and other code libraries |
log | The logs from console or service operations |
license (file) | License key |
To install the license
- Send an email describing your name and title, company, phone number and email address and your license need to help@truesight.bmc.com
- We will send you the license file via email.
- Save the file to your ServiceNow connector installation directory.
Getting your TrueSight Intelligence account API token
The ServiceNow connector uses REST API calls via a secure token. Your email address and API token are used to ensure authorized REST APIs send data to your account. Share the API key with authorized individuals only.
To get the API token
Your organization's account has a unique API token that must be used for authentication while sending data to TrueSight Intelligence.
The TrueSight Intelligence API key for your account is available in the TrueSight Account Manager. Navigate to My Account > Product Security.
To set up your ServiceNow connection
- To start the ServiceNow connector, double-click the executable (rs_servicenow2tsi.bat) file from the bin sub-directory of the ServiceNow connector installation directory.
- From under My Configuration, select Configuration Tasks. The resulting window is for configuring and maintaining the ServiceNow connector mappings.
- Set the connection parameters for your ServiceNow and TrueSight Intelligence accounts. Click Options > Connections or click Edit from the upper right.
Use the Source tab to enter the server name and credentials required to connect to the ServiceNow server. The user name is the login account for the database, and the password is for that account.
Field name
Description
Server
The IP address or DNS name of the source (ServiceNow) server.
Port
The port which the source server data must be accessed through. Set by the source data administrators.
Database
Leave this field blank.
User Name
The login account name for the database. This login account will be used by the ServiceNow connector to read the ServiceNow data. Generally, this is a read only account.
Password
The password associated with the database login account above.
JDBC Driver
Change the JDBC driver name only if a BMC support personnel asks you to change it. Use com.avnet.jdbc.rest.RSDriverV2
Full URL
Change the URL only if a BMC support personnel asks you to change it.
Use the Target tab to enter the details for your TrueSight Intelligence connection.
Field name
Description
Server
The IP address or DNS name of your TrueSight Intelligence server. Use api.truesight.bmc.com
Port
Leave this field blank.
Database
Leave this field blank.
User Name
The user name for your TrueSight Intelligence account that will allow ingestion of data coming from the ServiceNow connector.
Password
The API token for your TrueSight Intelligence account.
JDBC Driver
Change the JDBC driver name only if a BMC support personnel asks you to change it.
Full URL
Change the URL only if a BMC support personnel asks you to change it.
After completing the above steps, click Save to return to the Configuration user interface.
After entering the connection attributes for both ServiceNow and TrueSight Intelligence, click Save to save these values for subsequent uses. If the ServiceNow connection attributes correctly identify a ServiceNow server that is reachable from the ServiceNow connector, then after a few seconds, the sub-map names listed in the left-hand column of the ServiceNow connector user interface main page will be displayed in the color black.
If the sub-map names do not show as black after a delay of several minutes, an error message is displayed on the screen.
Example of authentication error due to an incorrect ServiceNow user password
To validate the configuration
After the ServiceNow connector has been installed and configured, log in to your ServiceNow Instance and create a test Incident to validate and send to TrueSight Intelligence. Copy the incident number for searching in TrueSight Intelligence.
To upload the first configuration item to TrueSight Intelligence
- From the home page, select Configuration Tasks to get to the main configuration and maintenance screen.
- Select the first sub-map from the left-hand column, SN_Incident.
- From the Simulate (Verification) tab.
- In the Extract field type $DELTA=300. This should return the newly created incident in ServiceNow.
- Highlight the newly created incident and click Load.
- The status should display 'CREATED' with the processing time.
All the configuration is done through the user interface, and when the ServiceNow connector is running in normal mode, the user interface will not be used. After the schedule is set, the normal day-to-day operation of the ServiceNow connector will be to run as a Windows service or UNIX daemon without any manual intervention.
To validate the uploaded data in TrueSight Intelligence
- Log in to TrueSight Intelligence.
- Click Events.
- Change the time range to 30min.
- Simulated Test Incident should now be in view.
To customize the field mapping
Use this section to understand how to customize the mapping and collect additional data from ServiceNow to populate the TrueSight Intelligence Events.
- Stop the rs_servicenow2tsi integration from the services console.
- Navigate to the install directory and open the rs_tsi.init.sql file in the Conf directory.
For example, if you want to add Caller and Contact Type attributes from the Service to Transform (Mapping) row on the ServiceNow connector UI.
You must modify the mappings. For example:
"properties.Caller" VARCHAR(255),
"properties.ContctType" VARCHAR(255), - Save the rs_tsi.init.sql file.
- Start the rs_servicenow2tsi integration from the Services Console.
- Open the Configuration UI.
- From the Transform (Mapping) tab, click New Row.
This will add a new row at the end of the Transform (Mapping) tab. - Click the drop-down button on the new row to view the roperties.Caller and properties.ContactType attributes in the list.
- These attributes are now available for mapping.
- After adding the two new rows and mapping using the Formatted DB field. Select the Simulate (Verification) tab and click Extract. You will see the mapped data under the caller_id and Contact_type column. Thereafter, click Load.
- You will see the data is created as TrueSight Intelligence events.