Configure the Collector 🔗
You can use a variety of default configuration files to set up the Splunk Distribution of OpenTelemetry Collector, as well additional components that you can configure separately.
Configuration files 🔗
Select the configuration file to set up the Collector based on your needs.
Default configuration 🔗
agent_config.yaml is the starting configuration for most environments. This is the default configuration file for the Linux (Debian/RPM) and Windows Installer collector packages.
Full configuration (Linux) 🔗
full_config_linux.yaml is an extended configuration. This configuration requires using OpenTelemetry Collector Contrib or a similar distribution.
Fluentd configuration 🔗
Fluentd to collect logs. Fluentd is applicable to Helm or installer script installations only. Common sources including filelog, journald, and Windows Event Viewer are included in the installation. See the Fluentd configuration documentation for more information.
Fluentd artifacts 🔗
The following table describes the artifacts in the Fluentd directory:
Configuration |
Description |
---|---|
fluent.conf or td-agent.conf |
These are the main Fluentd configuration files used to forward events to the Collector. The file locations are |
conf.d |
This directory contains the custom Fluentd configuration files. The location is |
splunk-otel-collector.conf |
This is the drop-in file for the Fluentd service on Linux. Use this file to override the default Fluentd configuration path in favor of the custom Fluentd configuration file for Linux (fluent.conf). |
The following is a sample configuration to collect custom logs:
<source>
@type tail
@label @SPLUNK
<parse>
@type none
</parse>
path /path/to/my/custom.log
pos_file /var/log/td-agent/my-custom-logs.pos
tag my-custom-logs
</source>
Configure the Collector using multiple files 🔗
To define multiple config files simultaneously use:
./otelcol --config=file:/path/to/first/file --config=file:/path/to/second/file
Additional configuration components 🔗
You can also configure the following components:
-
Environment variable (Alpha)
etcd (Alpha)
Include (Alpha)
Vault (Alpha)
Zookeeper (Alpha)
SignalFx Smart Agent components
Extension
Receiver