Configure Splunk Enterprise and enable 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.
- Log in to Splunk Enterprise as an admin.
- Enable the feature using one of the following options:
- In Splunk Enterprise, follow these steps:
- Select Settings and then select OTel Collectors under the Distributed Environment section.
- If you use this feature for the first time, you have to enable OTel Collectors management. Select Enable OTel Collectors management.
- Select Restart Splunk. The restart might take some time.
- In the server.conf file, follow these steps:
- Use the following settings:
[data_management] otel_collector_management_enabled = true
- Restart Splunk Enterprise.
- Use the following settings:
- In Splunk Enterprise, follow these steps:
- After enabling the feature, refresh the page to access the empty list of OTel Collectors.
- Copy the IP address of your Agent Management Splunk server for later use.
- Set up access tokens:
- Log in to Splunk Enterprise as an admin.
- Go to Settings, select Tokens, and then select New Token. For more information about token creation, see Create authentication tokens in the Securing Splunk Enterprise manual.
- Create a new token, such as with the following settings:
- User = admin
- Audience = general
- Expiration = Never
Note: The default value for Expiration is+30 d
. It means that the token expires after 30 days. To create a token that never expires, you can set the value to Never. - Select Create.
- 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.
- Select Close.
Next step