Splunk Search

how do I tell how often real-time searches are run?

cphair
Builder

Hello. I'm considering disabling real-time searches for my app, but first I'd like to know whether they're being used at all. Is there a way to see what time ranges have been chosen for recent searches? searches.log only has the search string itself, and SoS doesn't seem to have a useful view for this.

0 Karma
1 Solution

MuS
SplunkTrust
SplunkTrust

Hi cphair,

you can run this search

 index=_internal source="*metrics.log" group=realtime_search_data | timechart count by sid usenull=f useother=f

to get an overview if there are real-time searches run at all over the last 30 days (default retention for index _internal).
By the way, the user role does not have the rtsearch capabilities by default.

hope this helps ...

cheers, MuS

View solution in original post

MuS
SplunkTrust
SplunkTrust

Hi cphair,

you can run this search

 index=_internal source="*metrics.log" group=realtime_search_data | timechart count by sid usenull=f useother=f

to get an overview if there are real-time searches run at all over the last 30 days (default retention for index _internal).
By the way, the user role does not have the rtsearch capabilities by default.

hope this helps ...

cheers, MuS

cphair
Builder

Cool. Thank you.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...