Splunk Dev

Get data from REST API

beebeandwer
Path Finder

If I create a report in my account, can I get the data in the report from REST API.
If it is supported, can you give me a simple example?

Tags (2)
0 Karma
1 Solution

sdaniels
Splunk Employee
Splunk Employee
0 Karma

sdaniels
Splunk Employee
Splunk Employee

Tutorials here:

http://dev.splunk.com/view/rest-api-tutorials/SP-CAAADQ6

Why not use our SDKs and save yourself some time though?

http://dev.splunk.com/view/sdks/SP-CAAADP7

0 Karma

sdaniels
Splunk Employee
Splunk Employee

Look at the below link, you just need to figure out the splunk search that you want. Filter on 'flower' and then do a stats count.

Something like ... | stats count by product will give you a count by all products.

http://docs.splunk.com/Documentation/Splunk/5.0.2/RESTAPI/RESTbasicexamples

0 Karma

beebeandwer
Path Finder

I mean some detail data like the data in tutorial.
Such as the count of people who bought flower.
I get the info from https://localhost:8089/servicesNS/admin/search/saved/searches/test2 which is not the real data i want.

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 ...