Splunk Search

How to get List of realtime searches and the macro/savedSearch that runs on it

paramagurukarth
Builder

I am new to splunk...
How to get List of realtime searches and the macro/savedSearch that runs on it?
Is there any splunk query command or index from which i can get required information..

Tags (1)
0 Karma
1 Solution

MuS
Legend

Hi paramagurukarthikeyan,

try this from the search bar:

| rest /services/search/jobs | search eventSorting=realtime

cheers, MuS

View solution in original post

jpapp
New Member
| rest /servicesNS/-/-/search/jobs splunk_server=local | search eventSorting=realtime 

Works for me in Splunk 6.5

| rest /servicesNS/-/-/search/jobs | search eventSorting=realtime

Works for me on Splunk 6.5

0 Karma

MuS
Legend

Hi paramagurukarthikeyan,

try this from the search bar:

| rest /services/search/jobs | search eventSorting=realtime

cheers, MuS

phoenixdigital
Builder

Anyone know how to do this on the latest version of Splunk 6.x?

This doesn't appear to work anymore.

0 Karma

MuS
Legend

Hi @phoenixdigital, what exactly are you after? The REST call still works in 6.4.1

0 Karma

phoenixdigital
Builder

I was trying to get a list of all saved searches that would use a realtime search.

Maybe because I am using a clustered search head the results are not consistent.

0 Karma

paramagurukarth
Builder

Thank you Michael... This is what i was looking for 🙂

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...