Getting Data In

can splunk pull in data via rest

a212830
Champion

Hi,

Is there anyway Splunk can pull in data dynamically via REST? Looking for something similar to db connect dbquery - "rest_call ...endpoint" and display the data, but not index it.

Tags (1)

dwaddle
SplunkTrust
SplunkTrust

I don't think there's anything exactly like what you want.

There's http://apps.splunk.com/app/1546/ - which is a modular input extension to Splunk that does REST calls against an endpoint and indexes the results. Splunk makes the call to the remote endpoint periodically. I know you didn't want to index the data, so this is probably not what you want.

Similarly, you can use one of Splunk's REST endpoints to submit new events. See http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTinput#receivers.2Fsimple . This also indexes the data, so it's not exactly what you're looking for.

At this point, having given you two non-options, I would suggest you look at implementing your own custom search command. In this way, you write a script that makes the necessary API calls and configure splunk to make it available as a search command. It's not too bad. See http://docs.splunk.com/Documentation/Splunk/6.0.3/Search/Writeasearchcommand

0 Karma

a212830
Champion

Anyone? Anyone? Bueller?

We are trying to make our Splunk a central place for triage, and while we get a lot of logs and data already, some of it isn't indexed (and shouldn't be), and is only available via REST API's. If we could pull this in to view, it would complete the picture.

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!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...