Getting Data In

How to limit REST API searches in Splunk deployment?

dtow1
Path Finder

I am looking into the feasibility of opening up REST api calls to our Splunk deployment. One of the concerns is if we would have the ability to limit how many requests are allowed. I have not been able to find any documentation indicating a way to restrict it such that an authorized user could only do 100, or a 1000 or whatever arbitrary number of searches or other requests. Is this possible?

Thanks.

somesoni2
Revered Legend

The REST Api calls can be limited based on the role assigned to the user/account used to make the calls. So just make sure that you're putting necessary quota restriction for the role that your REST Api user aligned with.

dtow1
Path Finder

Thank you for the reply. When I look at the role limitations I see a maximum number of concurrent searches, which is useful, but I would also like to cap them for total searches per hour for example. Is there any way to limit like that?

0 Karma

somesoni2
Revered Legend

It would've been great if we could restrict it based on total number of searches for a time range, but it's not available. You can use combination of srchJobsQuota (concurrent searches) and srchDiskQuota (maximum disk space usage) so that impact of too many searches could be reduced. (Things will either queued [if concurrent search limit is reached] OR will be auto-finalized [if disk quota is reached]).

dtow1
Path Finder

Excellent! Thank you for sharing that information.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...