Security

how to implement external data authorisation

eriklund
New Member

I have a use-case where a Splunk end-user should only be allowed to search on a subset of events in an index. For example, restrict the end-user to only be able to search for customer's data which the end-user has authorisation to.

Is there a smart way of doing this in Splunk?
I looked into different solutions like Splunk Apps, External Lookup, Custom parameters in OAuth...

Building a new front-end app and use the Splunk search API is one way, however, that is probably not the smartes ways of doing it. 


I guess that I'm not the first one that has this use-case.

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Access to an index is all or none.  Splunk does not have a means for selective access to data within an index.  In fact, one of the criteria for creating a new index is different security needs.  IOW, each customer's data should be in its own index(es).

You can try defining a search filter (customer=foo, perhaps) for the end user, but that will apply to all indexes and so may not be a workable solution.

---
If this reply helps you, Karma would be appreciated.

eriklund
New Member

Thanks for fast response. As we are talking millions of customers that would not scale. 
I'll go for a Splunk API based solution then.

0 Karma

PickleRick
SplunkTrust
SplunkTrust

It does sound like a very peculiar use case. Maybe not even very well suited to searching Splunk directly. You definitely should try to engage Splunk Consultant to talk over your needs - maybe you need some form of middleware or a completely different approach to data access.

0 Karma

isoutamo
SplunkTrust
SplunkTrust
Hi
If/when you have millions of customers which all have their own datasets which should see/use only that customer you have quite interesting challenge.
I really propose that you as help from Splunk Partner on your local area and they could ask more help from Splunk to figure out if there is any reasonable way to do this.
r. Ismo
0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...