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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...