Splunk Search

How can I limit the number of results that can be returned in a search (in UI)?

the_wolverine
Champion

I'd like to limit certain users from running expensive searches by limiting the number of results that can be returned by a search in UI. In version 3.x, we had a maxresults setting. How do I do this in version 4.0?

1 Solution

gkanapathy
Splunk Employee
Splunk Employee

For a specific search, you can use the head search command in your search. This does not limit users or search results globally.

There is no limitation on numbers of results in version 4.0. However, you can limit users by configuring a search window time limit for the user's role. This can be done in the Splunk Manager>Role, or using the srchTimeWin setting in authorize.conf.

View solution in original post

gkanapathy
Splunk Employee
Splunk Employee

For a specific search, you can use the head search command in your search. This does not limit users or search results globally.

There is no limitation on numbers of results in version 4.0. However, you can limit users by configuring a search window time limit for the user's role. This can be done in the Splunk Manager>Role, or using the srchTimeWin setting in authorize.conf.

Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...