---
title: Splunk
slug: bhdo/splunk
createdAt: 2022-11-24T18:24:26.000Z
---

You can connect and send messages to Splunk from the Belden Horizon Data Operations Simulator.

# Before You Begin

You must have a Splunk account.&#x20;

# Step 1: Add Device

Follow the steps to [Connect a Device](https://public-docs.litmus.io/bhdo/connect-a-device). The device will be used to store tags that will be eventually used to create outbound topics in the connector. Make sure to select the **Enable Data Store** check box.&#x20;

For this use case, select the **Simulator&#x20;**&#x64;evice and **Simulator (Gen1)** driver.&#x20;

# Step 2: Add Tag

After connecting the device in Belden Horizon Data Operations, you can [Add Tags](https://public-docs.litmus.io/bhdo/add-tags) to the device. Create tags that you want to use to create outbound topics for the connector.&#x20;

For this use case, add a tag with the following details.

- **Name**: Select **int-integer**.&#x20;
- **Value Type**: Select **int**.&#x20;
- **Tag Name**: Enter **test1**.&#x20;
- **Polling Interval**: Enter **1**.&#x20;
- **Address**: Enter **0**.&#x20;

# Step 3: Retrieve Splunk Parameters

Log in to Splunk, navigate to the Splunk - Sublime Text page, and copy the following values:

- Input line
- Services line
- Token line

# Step 4: Add Splunk Connector

Follow the steps to [Add a Connector](https://public-docs.litmus.io/bhdo/add-a-connector) and select the **Splunk** provider.&#x20;

Configure the following parameters.&#x20;

- **Name**: A recognizable name to identify the connector.&#x20;
- **Hostname**: Paste the **Input line** copied in Step 3.&#x20;
- **Port**: Leave the default value of **8088**.&#x20;
- **Use SSL**: Make sure the check box is selected.&#x20;
- **Endpoint**: Paste the **Services line** copied in Step 3.&#x20;
- **Token**: Paste the **Token line** copied in Step 3.&#x20;
- **Throttling Limit**: The maximum number of messages per second to be processed. The default value is zero, which means that there is no limit.&#x20;
- **Persistent storage**: When enabled, this will cause messages to undergo a store-and-forward procedure. Messages will be stored within Belden Horizon Data Operations when cloud providers are online. &#x20;

# Step 5: Enable the Connector

After adding the connector, click the toggle in the connector tile to enable the connector.&#x20;

::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/Zx7dqDnCY3Ri-oLnEZrOC_splunk.png" size="60" width="357" height="266" caption="Toggle to enable connector" position="center" showCaption="true"}

# Step 6: Create Topic for Splunk Connector

You will now need to import the tag created in Step 2 as topics for the Splunk connector. The topic will be created as an outbound topic.&#x20;

**To create outbound topics:**

1. Click the connector tile.
   The connector *Dashboard&#x20;*&#x61;ppears.&#x20;
2. Click the **Topics&#x20;**&#x74;ab.&#x20;
3. Click the **Import from DeviceHub** tags icon.&#x20;
   The *DeviceHub Import&#x20;*&#x64;ialog box appears.

   ::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/4fC8yaOKctxiiTvUDGfWu_import-from-devicehub.png" size="80" width="1148" height="570" position="center" showCaption="false"}
4. Select all the tags to import and click **Import**.&#x20;

After importing the tags, click the toggle in the connector tile to restart the connection.&#x20;

::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/auudd-dpT_wbj5SFFQ5Pz_splunk.png" size="60" width="357" height="266" caption="Toggle to enable connector" position="center" showCaption="true"}

# Step 7: Enable Topic

To enable the topic, return to the Topics tab and click the **Enable all topics** icon.&#x20;

::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/2jKo-NC953SMU_KOkP0pz_enable-all-topics.png" size="80" width="1148" height="570" caption="Enable all topics icon" position="center" showCaption="true"}

# Step 8: Verify Data Connection in Splunk

**To verify the data connection in Splunk:**

1. Log in to Splunk.&#x20;
2. Open the Splunk HTTP Event Collector and refresh the data.
3. Scroll down to the *Activity&#xA0;*&#x73;ection and hover over the data to view *Valid Requests*.
4. In the *Request Overview* section, hover over the *Valid Request Count* and click the **Refresh&#x20;**&#x69;con.&#x20;
5. Verify that the values for *Event Count* and *Valid Request Count* update.&#x20;

