Splunk Observability Cloud

Configure Splunk Add-On for OpenTelemetry Collector to use HTTP_PROXY, without affecting other traffick

las
Contributor

Hi.

We are starting to use Splunk Infrastructure monitoring, and want to deploy the Otel-Collector using our existing Splunk infrastructure (Deployment Server).
We would really like to send the Otel data to IM using a HTTP_PROXY, but do not want to change the dataflow for the entire server, so only a local HTTP_PROXY for the otel-collector.

As I read the documentation you need to set environment variables for the entire server and not just the otel-collector process.

Has anyone any experience using HTTP_PROXY and Otel-Collector?

 

Kind regards

las

0 Karma
1 Solution

bishida
Splunk Employee
Splunk Employee

OK, here is what I found. The proxy env variables can't be set in inputs.conf because they are not included in the inputs.conf.spec. 

If you want to try a different approach, you might be able to set the proxy env variables in the startup script for the collector. This is not a supported config, but could be worth a try to see if it has the desired effect--and maybe it will lead to other ideas/solutions.

For example, if I was running this on a Linux host, I could try setting HTTPS_PROXY in 

/opt/splunkforwarder/etc/apps/Splunk_TA_otel/linux_x86_64/bin/Splunk_TA_otel.sh (e.g., export HTTPS_PROXY=http://my-proxy:8080 )

 

View solution in original post

bishida
Splunk Employee
Splunk Employee

Hi,

I think you can set variables like HTTP_PROXY, HTTPS_PROXY, and NO_PROXY in your splunk-otel-collector.conf file so they only apply to the collector and not the entire server.

0 Karma

bishida
Splunk Employee
Splunk Employee

Oh, wait--I see, you are using the TA. splunk-otel-collector.conf is probably not the place for this scenario. I'll have to look in to this more.

0 Karma

las
Contributor

Hi.

 

Thank you for your effort, I hope you find something.

 

Kind regards

0 Karma

bishida
Splunk Employee
Splunk Employee

OK, here is what I found. The proxy env variables can't be set in inputs.conf because they are not included in the inputs.conf.spec. 

If you want to try a different approach, you might be able to set the proxy env variables in the startup script for the collector. This is not a supported config, but could be worth a try to see if it has the desired effect--and maybe it will lead to other ideas/solutions.

For example, if I was running this on a Linux host, I could try setting HTTPS_PROXY in 

/opt/splunkforwarder/etc/apps/Splunk_TA_otel/linux_x86_64/bin/Splunk_TA_otel.sh (e.g., export HTTPS_PROXY=http://my-proxy:8080 )

 

las
Contributor

Thank you very much for your time and effort.

I have created both a support ticket and an idea.

 

Kind regards

0 Karma
Get Updates on the Splunk Community!

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureThursday, March 27, 2025  |  11AM PST / 2PM EST | Register NowStep boldly ...

Splunk AppDynamics with Cisco Secure Application

Web applications unfortunately present a target rich environment for security vulnerabilities and attacks. ...