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 ProgramDataSplunkOpenTelemetry Collectoragent_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.
Variable |
Description |
---|---|
|
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, |
Do the following after updating the variables in the default configuration file:
Start the service by rebooting the system or by running the following command in a PowerShell terminal:
PS> Start-Service splunk-otel-collector
To modify the default path to the configuration file for the service, run
regdit
and modify theSPLUNK_CONFIG
value in theHKLM:\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"
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