Splunk Dev

How to use .splunkrc with Python SDK

jameskerivan
Explorer

Hi,

I have tried to put .splunkrc in my C:/Users/myname as well as the path to my script I am using. With the file in both spots I receive a host is not defined. I am wondering what I am doing wrong? I followed the directions but it seems as my script cant find the .splunkrc file. Any help would be greatly appreciated.

0 Karma

i2sheri
Communicator
0 Karma

vkakani60
Path Finder

I downvoted this post because copy pasted the splunk docs, not pointing to the actual problem

0 Karma

i2sheri
Communicator

my bad.

I couldn't find link to these instructions so I copy pasted from README.md file from python SDK. Any ways now I have given the link to github page. Please feel free to provide splunk docs link, I did not find it.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...