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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...