A Windows MSI package (64-bit only) is available to download at https://github.com/signalfx/splunk-otel-collector/releases .
The collector will be installed to
\Program Files\Splunk\OpenTelemetry Collector
, and the
splunk-otel-collector
service will be created but not started.
A default config file will be copied to
\ProgramData\Splunk\OpenTelemetry Collector\agent_config.yaml
if it does not
already exist. This file is required to start the splunk-otel-collector
service.
Double-click on the downloaded package and follow the wizard.
In a PowerShell terminal:
PS> Start-Process -Wait msiexec "/i PATH_TO_MSI /qn"
Replace PATH_TO_MSI
with the full path to the downloaded package, e.g.
C:\your\download\folder\splunk-otel-collector-0.4.0-amd64.msi
.
Before starting the splunk-otel-collector
service, the following variables
in the default config file need to be replaced by the appropriate values for
your environment:
${SPLUNK_ACCESS_TOKEN}
: The Splunk access token to authenticate requests${SPLUNK_API_URL}
: The Splunk API URL, e.g.https://api.us0.signalfx.com
${SPLUNK_HEC_TOKEN}
: The Splunk HEC authentication token${SPLUNK_HEC_URL}
: The Splunk HEC endpoint URL, e.g.https://ingest.us0.signalfx.com/v1/log
${SPLUNK_INGEST_URL}
: The Splunk ingest URL, e.g.https://ingest.us0.signalfx.com
${SPLUNK_TRACE_URL}
: The Splunk trace endpoint URL, e.g.https://ingest.us0.signalfx.com/v2/trace
${SPLUNK_BUNDLE_DIR}
: The location of your Smart Agent bundle for monitor functionality, e.g.C:\Program Files\Splunk\OpenTelemetry Collector\agent-bundle
After updating all variables in the config file, start the
splunk-otel-collector
service by rebooting the system or 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
splunk-otel-collector
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"
After modifying the configuration file or registry key, apply the changes by restarting the system or running the following PowerShell commands:
Stop-Service splunk-otel-collector
Start-Service splunk-otel-collector
The collector logs and errors can be viewed in the Windows Event Viewer.