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 ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...