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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...