Splunk Search

Is there a way to limit a scheduled search by its run time?

danielbb
Motivator

The skipped searches we have are ones that run for over an hour. Is there a way to limit by configurations the run time of queries?

0 Karma
1 Solution

burwell
SplunkTrust
SplunkTrust

There is a way to limit search execution time. You do it by role and you put the configs in authorize.conf.

For example you can limit power users to 30 minutes. This is applicable for ad-hoc or scheduled searches

[role_power]
srchMaxTime = 1800

View solution in original post

burwell
SplunkTrust
SplunkTrust

There is a way to limit search execution time. You do it by role and you put the configs in authorize.conf.

For example you can limit power users to 30 minutes. This is applicable for ad-hoc or scheduled searches

[role_power]
srchMaxTime = 1800

danielbb
Motivator

That's amazing. So how come, by default, it's 100days?

0 Karma

burwell
SplunkTrust
SplunkTrust

Haha. I didn't know the default was 100 days.

if this is the answer you need can you accept the answer? Thanks!

skoelpin
SplunkTrust
SplunkTrust

Write better searches and/or add more indexers and boost the IOPs of current indexers. Can you post a sample of your query that is skipping? Does it have any joins/appends etc..?

How frequently are the searches running? Skips are expected if the runtime is longer than the search frequency

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