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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...