> For AI agents: [llms.txt](https://docs.trustedauth.com/llms.txt) provides a Markdown index of this documentation.

# Splunk

Splunk software allows you to search, monitor, and analyze machine data (see <https://www.splunk.com>). You can protect access to Splunk by integrating Splunk with Identity as a Service. Once integrated, users can use single sign-on to log in to their Splunk account through Identity as a Service.

note

This integration was tested using Identity as a Service version 5.14 and Splunk version 8.1.1. Other versions of Splunk may require integration and configuration steps that differ from those documented in this procedure. For other versions of Splunk, use this procedure as a starting point for integrating Splunk. In the event of other issues, contact <support@entrust.com> for assistance.

To integrate Splunk with Identity as a Service, you must do the following

## Step 1: Download the metadata from Splunk

1. Log in to your Splunk account as an administrator.
2. Click **Settings >** **Authentication Methods**.
3. If the Choose **Default Dashboard** dialog box appears, click **Save** and then click **Settings > Authentication Methods** again. The **Authentication Methods** page appears.
4. Click the **SAML** radiobutton.
5. Click **Configure Splunk to use SAML**. The **SAML Configuration** dialog box appears.
6. Click **Download File** to download the **SP Metadata File**. The SP Metadata file downloads.

## Step 2: Add Splunk to Identity as a Service

1. Log into your Identity as a Service administrator account.

2. Click Menu icon **>** **Security > Applications**. The **Applications** **Lists** page appears.

3. Click **Add**. The **Select an Application Template** page appears.

4. Do one of the following:

   - Select **SAML Cloud Integrations** from the search drop-down list and scroll to find the application you want to add to IDaaS.
   - In the **Search bar**, enter a search option to filter for the application you want to add to IDaaS.

5. Click **Splunk**. The **Add Splunk** page appears.

6. Enter an **Application Name**.

7. Enter an **Application Description**.

8. Optional. Add a custom application logo.

   1. Click Plus icon next to **Application Logo**. The **Upload Logo** dialog box appears.
   2. Click Upload icon to select an image file to upload.
   3. Browse to select your file and click **Open**. The **Upload Logo** dialog box reappears showing your selected image.
   4. If required, resize your image.
   5. Click **OK**.

9. Select the **Authentication Flow** that appears to users during login.

10. Click **Next**. The **General** page appears.

11. Click Upload icon to the **Upload Metadata XML** and browse to the location of the metadata file you downloaded. The **Metadata Configuration** dialog box appears.

12. If required, click **Merge with existing values** to merge new values with existing values for Alternative Assertion Consumer Services URLs and SAML attribute names.

13. Click **Save**.

attention
Note the **Service Provider Entity ID (Issuer)**. You need this in _Step 5: Configure Splunk for Identity as a Service authentication_.

14. Optional. Enter the **SAML Username Parameter Name** used to identity the user ID being requested for authentication. The user ID can then be passed as a parameter, for example, Username=jdoe. Alternately, if the SAML username is NameID, the SAML Request XML NameID element value is used to the identify the IDaaS userID.

15. Enter the **SAML Session Timeout** to the time when the SAML Assertion times out. The maximum is 720 minutes.

16. Enter the **Max Authentication Age (seconds)** to set the maximum amount of time that can elapse before a user is required to reauthenticate during a new login attempt. This applies for both SP-initiated and IDP-initiated login. Set this field to -1 to disable this feature.

17. From the **SAML NameID Attribute** drop-down list, select **UserID**.

18. From the **SAML NameID Encoding Format** drop-down list, select **Unspecified**.

19. From the **SAML Signing Certificate** the drop-down list, select the signing certificate.

20. From the **SAML NameID Encoding Format** drop-down list, select **SHA256**.

21. Deselect **Sign Complete SAML Response**.

22. Deselect **Enable Go Back Button** if you do not want users to be able to go back to the Splunk login page to log in.

23. Select **Show Default Assertion Consumer URL Service in the My Profile**. When selected, the Default Assertion Consumer URL appears in a user's My Profile page in addition to relay states and Alternative Assertion Consumer URLs.

24. Optional. Add **Alternative Assertion Consumer Service URLs**, as follows:

    1. Click **Add**.
    2. Enter a **Name**.
    3. Enter a URL **Value**.
    4. Select **Show in My Profile** to display the Alternative Consumer Service URL in a user's My profile page.
    5. Optional. **Add an Application Logo**.
    6. Click **Add**.
    7. Repeat these steps to add more Alternative Assertion Consumer Service URLs.

25. Add a **SAML Attribute** for Groups, as follows:

    1. Under **SAML Attributes**, click **Add**. The **SAML Attributes** dialog box appears.

    2. In the **Name** field, enter SPGroups.

    attention
    Note the **Name**. You need this in _Step 5: Configure Splunk for Identity as a Service authentication_.

    3. Click **Add** next to **Value(s)**.

    4. Type **[** and select **[Groups]** to include a user's groups every time the user authenticates to Splunk.

26. Click **Submit**.

## Step 3: Add a resource rule

See [Create resource rules](/docs/authentication-and-security/create-and-manage-resource-rules.md).

## Step 4: Download the metadata file from Identity as a Service

1. In Identity as a Service, click Menu icon **>** **Security > Applications**. The **Applications List** page appears.

2. Do one of the following:

   - Click Cloud Download icon next to the application you are integrating with Identity as a Service.
   - Click Ellipsis Vertical icon next to the application you are integrating with Identity as a Service and select **SAML IDP Metadata**.

   The **SAML Application Metadata** dialog box appears.

3. **Select the certificate to include in the SAML IDP Metadata file** from the drop-down list.

4. If applicable, **Select the domain to include in the SAML IDP Metadata** file from the drop-down list.

5. Enter the **Lifetime, in days, for the SAML IDP Metadata file**. The value must be between 2 and 730.

6. Do one of the following, as required:

   - Copy the **Public Endpoint** to paste into your SAML application being used Identity Provider authentication.
   - Click **Download**.

note

If you are using multiple domains, you must download each domain's metadata file separately because the values in the metadata file vary for each domain.

## Step 5: Configure Splunk for Identity as a Service authentication

1. Log in to your Splunk account as an administrator.
2. Click **Settings > Authentication Methods**.
3. If the Choose **Default Dashboard** dialog box appears, click **Save** and then click **Settings > Authentication Methods** again. The **Authentication Methods** page appears.
4. Click the **SAML** radiobutton.
5. Click **Configure Splunk to use SAML**. The **SAML Configuration** dialog box appears.
6. Click **Select File** to upload the **Metadata XML File** you downloaded in _Step 4: Download the metadata file from Identity as a Service_.
7. Browse to select the Identity as a Service metadata file and click Open. The file Uploads to your Splunk SAML configuration.
8. Scroll to **Advance Settings,** click the **Name Id Format** field and select **Unspecified** from the pop-up menu.
9. Scroll to **SSO Binding** and select **HTTP Redirect**.
10. For the **Signature Algorithm**, select **SHA256**.
11. Scroll up to **Alias** and click to expand and then do the following:
    1. In the **Role alias** field, enter SPGroups. This is the groups SAML Attribute you created in _Step 2: Add Splunk to Identity as a Service_.
12. Scroll to the **Entity ID** field and enter the **Service Provider Entity ID (Issuer)** you copied in _Step 2: Add Splunk to Identity as a Service_.
13. Select **Sign AuthnRequest**.
14. Click **Save**. The **SAML Groups** page appears.
15. Click **New Group**. The **Create New SAML Group** dialog box appears.
16. In the **Group Name** field, enter **splunkusers**.
17. In the **Splunk Roles** list, select **user**.
18. Click **Save**.

## Step 6: Test the integration

### Testing Service Provider Login

1. Open a Web browser and enter the URL for your Splunk account. You are directed to Identity as a Service.
2. Enter your Splunk account **User ID** and click **Next**.
3. Respond to the second-factor authentication challenge. If you respond successfully, you are logged in to the Splunk **Home** page.

### Testing Identity as a Service redirect log in

1. Log in to your Identity as a Service account.
2. Go to your **My Profile** page if you are not already there.
3. Under **Applications**, click **Splunk**.
4. Respond to the second-factor authentication challenge. If you respond successfully, you are logged into Splunk.
