Splunk Search

Is there a way to limit how long real-time searches run?

a212830
Champion

Hi,

Is there a way to limit how long a real-time search can run? I have customers firing them up (legitimately) and then walking away.

0 Karma

ddrillic
Ultra Champion

Documentation about the subject at How to restrict usage of real-time search

At the role level you can set some restrictions -

alt text

sloshburch
Splunk Employee
Splunk Employee

Upvoted because this is the most appropriate answer to your specific question - although I'm also more of a fan of limiting user capabilities and only promoting users into power user roles where they can do advanced things like rtsearch.

We can talk offline about ways to implement this and how to convert existing rtsearch panels accordingly.

0 Karma

twinspop
Influencer

Exhibit A for why RT searches are terrible. I've banned them entirely from my environment. A dashboard with a panel that refreshes every 30s (or even 10s) is preferable IMO.

authorize.conf:

[default]
rtsearch = disabled
0 Karma

somesoni2
Revered Legend

I don't think there is such limit to aumatically finalize/kill real-time search process. You'd need to setup some custom alerts to get list of currently running real-time search and if the duration is more that your threshold, kill it.

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 ...