Getting Data In

how to use rest api to get aggregated data from splunk?

pronix
New Member

hello
I want to sent in splunk this request and get aggregated data
search index=_intenal earliest=-2h@h http_status="200" OR http_status="204" | fields request_time http_status dc

but for ruby-sdk it return
"\n \n"
for curl request return a lot raw data.
it is possible for rest api ?
how can i use it ?

0 Karma

kml_uvce
Builder

yes you can use sdk like in python

http://dev.splunk.com/view/python-sdk/SP-CAAAEE5

0 Karma

pronix
New Member

I use ruby-sdk and curl for direct api requests.
it is not working.
do you think python sdk prived something new ?

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...