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!

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 at Splunk .conf24 ...

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

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...