Use your Splunk Add-on for OpenTelemetry Collector instances as agents and gateways
The Splunk Add-on for OpenTelemetry Collector provides configuration files that help you configure your add-on instances three ways:
- As an agent: This is the default value and the simplest configuration. The Splunk Add-on for OpenTelemetry Collector, when configured as an agent, sends data to Splunk Observability Cloud.
- As a gateway: When configured as a gateway, your Splunk Add-on for OpenTelemetry Collector collects data from one or more agents before forwarding it to Splunk Observability Cloud.
- As an agent that sends data to a gateway: To use a gateway instance, you create one or more instances of Splunk add-on for OpenTelemetry Collector as agents that send data to that gateway instance.
Configure Splunk Add-on for OpenTelemetry Collector as an agent
As an agent, the Splunk Add-on for OpenTelemetry Collector sends data directly to Splunk Observability Cloud. This is the default configuration.
For more information about agents, see host monitoring agent mode.
If your instance is not configured as an agent and you want to configure it as an agent, edit your inputs.conf
file and update the variable Splunk_config
to reflect your agent configuration file name. You can find this file in your directory at /otelcol/config/
. The default file name is ta-agent-config.yaml
. If you are using a custom configuration file, provide that file name.
Configure Splunk Add-on for OpenTelemetry Collector as a Gateway
When you configure an instance of the Splunk Add-on for OpenTelemetry Collector as a gateway, that instance can collect data from one or more instances of the Splunk Add-on for OpenTelemetry Collection that are configured as agents. The gateway instance sends that data to Splunk Observability Cloud.
For more information about gateways, see collector gateway mode.
To configure your Splunk Add-on for OpenTelemetry Collector as a gateway:
- Edit your inputs.conf file to update the variable
Splunk_config
with your gateway configuration file name. You can find this file in your directory at/otelcol/config/
. The default file name for the gateway file ista-gateway-config.yaml
. If you are using a custom configuration file, provide that file name. - Set the
splunk_listen_interface
value to 0.0.0.0 or to the specific IP address that sends data to this gateway inlocal/inputs.conf
. - You must also configure one or more Splunk Add-on for OpenTelemetry Collector instances as agents that send data to your new gateway. See Configure Splunk Add-on for OpenTelemetry Collector as an agent that sends data to a gateway.
Configure Splunk Add-on for OpenTelemetry Collector as an agent that sends data to a gateway
You can set up one or more Splunk Add-on for OpenTelemetry Collector instances as agents that send data to another instance that is set up as a gateway. To learn more, see Send data from an agent collector to a gateway collector.
To do this you configure an instance that works as a gateway, and then one or more instances that operate as agents. To configure your Splunk Add-on for OpenTelemetry Collector as an agent that sends information to a gateway instance:
- Create your gateway, if you have not already done so. See Configure Splunk Add-on for Open Telemetry Collector as a Gateway for more information.
- Edit your inputs.conf file to update the variable
Splunk_config
to reflect your gateway configuration file name. You can find the default configuration file in your directory at/otelcol/config/
. The default file name for this configuration file ista-agent-to-gateway-config.yaml
. If you are using a custom configuration file, provide that file name. - In the README directory, open
inputs.conf.spec
and copy the attribute for thesplunk_gateway_url
. - Paste this value into
ta-agent-to-gateway-config.yaml
and then update the value for this setting with the gateway IP address.
Install the Splunk Add-on for OpenTelemetry Collector to a universal forwarder instance | Configure the Splunk Add-on for OpenTelemetry Collector |
This documentation applies to the following versions of Splunk® Add-on for OpenTelemetry Collector: 1.3.0, 1.3.1, 1.3.2
Feedback submitted, thanks!