Getting Data In

External Scripts

vaishnavi07
Explorer

Hi all. I need to get data from Splunk by invoking an external scrip(Python etc..). Directly when i run the script i need to get the output data. For e.g i need to get the data from an index "CDM" Is there a way to do it? How to start with this? Thanks in advance.

Tags (1)
0 Karma

jacobwilkins
Communicator

It sounds like you are wanting a Python script that dispatches a search in Splunk, and then returns the results?

If that is the case, check out the Python SDK. I think one of the example scripts does what you want.

0 Karma

woodcock
Esteemed Legend
0 Karma

paramagurukarth
Builder

Check for the availability of the REST end point for those resources..
you can even execute queries...

Refer the below link
http://dev.splunk.com/restapi

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...