Configure Splunk Enterprise and turn on OpenTelemetry Collectors

To be able to use the OTel Collectors feature in agent management, you have to configure Splunk Enterprise. This topic presents an example of configuration.

The following configuration in this topic is only an example.

  1. Log in to Splunk Enterprise as an admin.
  2. Enable the feature using one of the following options:
    1. In Splunk Enterprise, follow these steps:
      1. Select the settings icon (Settings), and then under the Distributed Environment section, select Agent management.

        The Agent management page opens.

      2. On the left menu, select the OTel Collectors view.

      3. If you use this feature for the first time, you have to turn on OTel Collectors management. Select Enable OTel Collectors management.
      4. Select Restart Splunk. The restart might take some time.
    2. In the server.conf file, follow these steps:
      1. Use the following settings:
        CODE
        [data_management]
        otel_collector_management_enabled = true
      2. Restart Splunk Enterprise.
  3. After turning on the feature, refresh the page to access the empty list of OTel Collectors.
  4. Copy the IP address of your agent management Splunk server for later use.
  5. Set up access tokens:
    1. Log in to Splunk Enterprise as an admin.
    2. Select the settings icon (Settings) and under the Users and Authentication section, select Token, and then select New Token. For more information about token creation, see Create authentication tokens.
    3. Create a new token, such as with the following settings:
      • User = admin
      • Audience = general
      • Expiration = +30 d
      Note: The default value for Expiration is +30 d. It means that the token expires after 30 days.
      Important: The user for whom you create the token must have at least the data_management_agent role.
    4. Select Create.
    5. The token is displayed in the Token field. Copy the token and paste it into the config.yaml configuration file as described in the next section.
    6. Select Close.

Next step

Configure an OpenTelemetry Collector to connect to agent management