Getting Data In

How to create an 'all time' search with Splunk Ruby SDK?

TierSeven
Engager

In the UI, we have an option to search results from the beginning of out log collecting using the 'all time' option.

Is there a way of getting this info via the SDK?

If so, What are the best practices for that? I'm currently using create_searchgoing backwards one day and by that getting all the info, But i'm not sure this is the way to go.

0 Karma

hunters_splunk
Splunk Employee
Splunk Employee

Hi TierSeven,

Please refer to the Splunk REST API Reference Manual to see if any of the search endpoints can meet your specific requirements:
http://docs.splunk.com/Documentation/Splunk/6.5.1/RESTREF/RESTsearch

Hope this helps. Thanks!
Hunter

0 Karma

reilly1
New Member

I downvoted this post because does not answer the question

0 Karma

Motoko89
Path Finder

I downvoted this post because answer not addressed the question

0 Karma

TierSeven
Engager

Thanks for the answer, I'm afraid i did not explain myself all that well.
I'm using the Splunk Ruby SDK (Which uses the REST API of course).
I'm trying to figure out how to retrieve every log entry i have on my Spluk since the beginning.
Currently i'm using create_searchbut i'm not sure this is the way to go.
I'll update the question.

0 Karma

dlamb_splunk
Splunk Employee
Splunk Employee

Are you looking for best practices regarding the REST API input or searching all time data?

0 Karma

TierSeven
Engager

regarding the REST API. I'm trying to get all logged events from the beginning.

0 Karma
Get Updates on the Splunk Community!

Application management with Targeted Application Install for Victoria Experience

  Experience a new era of flexibility in managing your Splunk Cloud Platform apps! With Targeted Application ...

Index This | What goes up and never comes down?

January 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Splunkers, Pack Your Bags: Why Cisco Live EMEA is Your Next Big Destination

The Power of Two: Splunk + Cisco at "Ludicrous Scale"   You know Splunk. You know Cisco. But have you seen ...