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

kamal singh bisht
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!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...