Splunk Search

Is splunklib api code portable to splunk-sdk

DavidGuarneri
Path Finder

How much syntax has changed from splunklib (which ran on Python 2.x) to splunk-sdk (which runs on Python 3.x)? Just seems like a lot of the tutorials and info on Splunk API is super outdated. Is nobody doing this anymore? Currently mainly interested in running a search and getting results into Pandas using Python. Also breaking up a search into multiple smaller time spans if the time period is too long and/or the return data set too large.

 

I have old code from the splunklib Python 2.0 days but basically just starting over and using it as reference.

 

0 Karma

DavidGuarneri
Path Finder

I've given up. I don't know if it's a network issue on my side or what, but I'm just going to use standard Restful API libraries. All the samples around splunk-sdk that I could find seem out of date and I'm concerned about long-term support.

0 Karma
Get Updates on the Splunk Community!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...