Splunk Dev

How to correct Splunk SDK Python syntax error?

erick_costa
Path Finder

Python 2.4.3
Splunk 6

Error:

/splunklib/client.py", line 196
return entries if isinstance(entries, list) else [entries]
^
SyntaxError: invalid syntax

What should I do?

Tags (3)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

The if expression was introduced in Python 2.5.

Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...