Docs » Get started with the Splunk Distribution of the OpenTelemetry Collector » Configure the Collector » Advanced configuration for Windows

Advanced configuration for Windows 🔗

The following sections describe available settings for configuring the Splunk Distribution of OpenTelemetry Collector for Windows.

Change the default configuration file 🔗

The Collector comes with a default configuration in the \ProgramData\Splunk\OpenTelemetry Collector\agent_config.yaml file. This configuration can be modified as needed. Possible configuration options can be found in the receivers, processors, exporters, and extensions folders of the following GitHub repositories:

Before starting the splunk-otel-collector service, change the variables in the default configuration file to the appropriate values for your environment. The following table provides a description of each variable.




The Splunk access token to authenticate requests


The Splunk API URL. For example,


The Splunk HEC authentication token


The Splunk HEC endpoint URL. For example,


The Splunk ingest URL. For example,


The Splunk trace endpoint URL. For example,


The location of your Smart Agent bundle for monitor functionality. For example, C:\Program Files\Splunk\OpenTelemetry Collector\agent-bundle.

Do the following after updating the variables in the default configuration file:

  1. Start the service by rebooting the system or by running the following command in a PowerShell terminal:

    PS> Start-Service splunk-otel-collector
  2. To modify the default path to the configuration file for the service, run regdit and modify the SPLUNK_CONFIG value in the HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment registry key, or run the following PowerShell command (replace PATH with the full path to the new configuration file):

    Set-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" -name "SPLUNK_CONFIG" -value "PATH"
  3. After modifying the configuration file or registry key, apply the changes by restarting the system or by running the following PowerShell commands:

    Stop-Service splunk-otel-collector
    Start-Service splunk-otel-collector