Splunk Dev

Fetching Events from Splunk using Splunk SDK for Python

mohnish_saini
New Member

Hi,

My requirement is to fetch events from Splunk using Splunk SDK for Python. My search query is ready and I have to execute it using either of these APIs

oneshot
OR
export

Although, the above APIs are being well defined in Splunk documentation but I want a detailed explaination on when to use which one. And This will help me in deciding which one.

To be more specific, my requirement is get events from Splunk every hour.

Thanks

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Continue Your Federation Journey: Join Session 3 of the Bootcamp Series

To help practitioners build a stronger foundation, we launched the Data Management & Federation ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Casting Call: Compete in Cyber Games

Lights, Camera, SecOps: Apply to Compete in Cyber Games     Think you have what it takes to beat the clock? ...