splunk-sdk-python
splunk-sdk-python copied to clipboard
Need to add a header to get past our load balancer when connecting to splunk host
There is a load balancer in front of the search heads for a splunk instance I am trying to connect to. Is there a way to add a header that will always get sent when talking to the instance?
I do the following in curl and need an equivalent way using the Python SDK:
curl -kv -H 'Magic-Header: <MY_MAGIC_TOKEN>' ...
Any help would be appreciated.
Hi @DanEhrlich,
You can define a custom handler method that sets your header. See the handler example.