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!

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...