Splunk Dev

saved_search.py both python 2 and 3?

davop
New Member

try:
import utils
....

opts = utils.parse(argv, RULES, ".splunkrc", usage=usage)

I am confused as both python3 and python2 does not seem to have an utils module with a parse method? Could someone explain?

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Please put this question in context. What are you trying to do? Where did you get this code?

---
If this reply helps you, Karma would be appreciated.
0 Karma

davop
New Member

I was just attempting to run the example code from the sdk for python. One of the files called saved_search.py. I tried running it with both python 3 and/or python 2 but both times in the code saved_search.py it says there is no methods in utils....

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...