Applicable for ENA v23.0 P01 upwards.
To set up the Entuity app with Splunk, and to view the Event Dashboard in Splunk
To set up the Splunk configuration file
EMS actions that forward events and incidents to Splunk
To forward incidents to Splunk
To set up the Entuity app with Splunk, and to view the Event Dashboard in Splunk:
- On the Splunk Enterprise page, click Install app from file in the top-right of the window, which will open the Upload app page.
- Browse and select the Entuity app file, and click Upload.
- Once the Entuity app has been uploaded, click the Apps dropdown field at the top of the page, and select Entuity App. This will open the Entuity app.
- Click the Dashboards tab at the top of the window to open the Dashboards page.
- Click Event Dashboard to open the dashboard, which will be empty until you have configured Entuity to forward events to Splunk.
To set up the Splunk configuration file:
- Navigate to the
Splunk-example.cfgfile, located in the entuity_home/etcdirectory. - Using this example, create a
Splunk.cfgfile, and save it to the same entuity_home/etcdirectory. - Update the 'default' section or add a named 'section' to the file, and specify values for the host, port and path, which together comprise the URL for the Splunk
HttpEventCollector. -
Optionally set the protocol in the
protofield, and choose whether to enable or disable certificate testing via thetrustfield.The default
trustvalue is 1, which enables certificate testing. If you are using the cloud version of Splunk, enter 0 to disable checking of the certificate.
For example:[default]
port=8088
proto=https
trust=1
host=localhost
path=/services/collector/event - Save the file, and then stop and restart Entuity.
Note, you can enter the value of the 'section' name (default in this example) in the cname parameter later when you configure Entuity to forward events and incidents.
EMS actions that forward events and incidents to Splunk
As of Entuity v23.0 P01 upwards, there are two EMS actions for forwarding events and incidents to Splunk: 'Send to Splunk' and 'Send to Splunk Queue'
The 'Send to Splunk' action forwards each event and incident directly to Splunk, while the 'Send to Splunk Queue' action forwards events and incidents to Splunk through a queue from the Message Broker. Sending through a queue helps prevent communication or connection errors during the forwarding process, as messages remain in the queue until successfully acknowledged by the target endpoint. A message queue log file is also created when using the 'Send to Splunk Queue' action. For more information on message queues, see this article.
For information about EMS actions, see What are EMS actions?
To forward events to Splunk:
You can forward events to Splunk (via the HttpEventCollector in Splunk) by setting up an event rule in Entuity. This rule is also used by the Events Dashboard in Splunk.
- In Splunk, follow the instructions provided by the Splunk documentation to generate an HttpEventCollector.
Ensure the sourceType is 'Entuity_Events'. Also, ensure that, in Global Settings, the token is set to Enabled. - In Entuity, click Main Menu and then Administration.
- On the Administration page, click Event Administration.
- On the Event Administration page, click the Rules tab.
- Select Post Storage in the tree on the left, and then click Add Rule at the bottom of the window.
- From the Add Rule window that is opened, ensure that the Type field is set to 'Generic', and the enabled checkbox is selected.
- Complete the Name and Description fields, as appropriate.
- Leave the Condition field as 'None'.
- In the Action Steps section, click Add to open the Add Action window.
- In the Type dropdown field, select 'Send to Splunk', or, from Entuity v23.0 P01 upwards, 'Send to Splunk Queue'.
- In the Parameters field, select the 'cname' parameter and click Set to open the Parameter Value window.
- Enter the value of the 'cname' parameter in the Value field, which is defined in the Splunk configuration file, such as 'default'. Then click OK.
- In the Parameters field, select the 'token' parameter and click Set.
- In the Value field, enter the Splunk
HttpEventCollectortoken, and click OK. - Click OK to save the action step and return to the Add Rule window.
- Click OK to save and add the event rule, and then click the Save icon in the top-right of the Event Administration page to save the event project.
-
If you selected the 'Send to Splunk Queue' action step in step i (Entuity v23.0 P01 upwards), choose whether to execute callback actions by optionally using the 'Response Callback' action. Do one of the following:
- If you want a 'Response Callback' action executed when event and incident data is sent to the Splunk integration:
- Keep the 'callback' parameter in the 'Send to Splunk Queue' action step.
- Create a Splunk-specific 'Response Callback' action from the Actions tab of the Event Administration page, and define which action to execute upon receiving a response from the Splunk integration.
- Return to the 'Send to Splunk Queue' action step in the new rule from the Rules tab (for events) or in the new trigger from the Incidents tab (for incidents) on the Event Administration page.
- Enter the name of the newly created 'Response Callback' action as the value of the action step 'callback' parameter.
- If no 'Response Callback' action is required, go to the Actions tab of the Event Administration page, and remove the 'callback' parameter from the 'Send to Splunk Queue' action.
Note, if events are forwarded through message queues, the 'Set Attribute' option can't be used as a 'Response Callback' action. However, you can use other options in the 'Response Callback' action, such as 'Create Event'.. - If you want a 'Response Callback' action executed when event and incident data is sent to the Splunk integration:
To forward incidents to Splunk:
You can forward incidents to Splunk (via the HttpEventCollector in Splunk) by setting up an event trigger. You can configure a global trigger so that all incidents will be forwarded to a server, or individual triggers so that only individual incidents will be forwarded.
- In Splunk, follow the instructions provided by the Splunk documentation to generate an
HttpEventCollectorin Splunk. - In Entuity, click Main Menu and then Administration.
- On the Administration page, click Event Administration.
- On the Event Administration page, click the Incidents tab,
- Click Edit Global Triggers at the bottom of the window.
- This will open the Edit Global Triggers window. Click Add.
- This will open the Create Trigger window. Complete the Name and Description fields, as appropriate, and ensure that the enabled checkbox is selected.
- Ensure that the On Transition To dropdown field is set to 'Any Change' so that all incidents raised against the same source are sent to Splunk.
- In the Condition dropdown field, select 'All tests must succeed' which will update the window.
- In the Tests section, click Add to open the Add Test window.
- In the Type dropdown field, select 'Incident Severity Test'.
- In the Expression dropdown field, specify the severity level you want to forward.
- Click OK to return to the Edit Trigger window.
- In the Action Steps section, click Add to open the Add Action window.
- In the Type dropdown field, select 'Send to Splunk' or, from Entuity v23.0 P01 upwards, 'Send to Splunk Queue'.
- In the Parameters field, select the 'cname' parameter and click Set.
- Enter the value of the 'cname' parameter in the Value field which is defined in the Splunk configuration file, such as 'default'. Then click OK to return to the Add Action window.
- In the Parameters field, select the 'token' parameter and click Set.
- Set the Value field to the Splunk HttpEventCollector token, and click OK.
- Click OK to save and return to the Create Trigger window.
- Click OK to save and add the trigger, and then click the Save icon in the top-right of the Event Administration page to save the event project.
- If you selected 'Send to Splunk' in step i, choose whether to execute callback actions, in the same way as step 11 for the event process.
If you want to differentiate between when an incident is opened, closed and expired, you can set up multiple forwarding actions with different On Transition To field values (step 8 above). Ensure each HttpEventCollector has a different sourceType, so they can be differentiated on Splunk.
Comments
0 comments
Please sign in to leave a comment.