Getting Data In

Looking for suggestions on implementing a complicated access control setup: Need to give some users access to only a subset of data from an index, and all data from other indexes.

Ricapar
Communicator

Gonna paint out a scenario to help explain what I'm looking for.

I have a user, he's a developer for a specific application. I have other users who are devs for other applications. They all belong to the same line of business within the company.

The business's index is readable only to people within that business unit's AD group structure.

We also have several other indexes that are readable to anyone who can authenticate into Splunk. This is all internally public data.

Right now, application data for each line of business comes into an index for the entire business. This was set up this way to simplify deployment server (serverclass.conf) configurations, and to minimize the amount of inputs.conf configurations we'd have to roll out.

However, the business is now asking for the ability to give developers access to only non-production data for only their applications.

We don't want to split into different indexes, since we'd then end up with index names of the sorts of "bu-myapp-prod", "bu-myapp-dev", etc.

A few things to make it easier.. I have a lookup table (regenerated daily) that when matched with a host, tells me the application and tier it belongs to.

I'm hoping to use this in conjunction with role search filters to get to the state I want. I'm almost there - I have a role created where the user is only able to search for data for his/her app and tier's data.

However, right now I lose access to the globally shared data.

My idea set up would look like:

  • If index=business, then use data from the lookup table and filter only provided
  • If the index is one of the public ones, then proceed as normal.

Essentially, I only want to filter results if they are coming from one specific index. All others should go through unfiltered.

0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

If you want to apply myCondition as a role search filter to only one index myIndex, you can define this as a filter:

index!=myIndex OR (myCondition)

View solution in original post

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

If you want to apply myCondition as a role search filter to only one index myIndex, you can define this as a filter:

index!=myIndex OR (myCondition)
0 Karma

Ricapar
Communicator

Wow, that was easy. I feel bad now!

Thank you!

0 Karma
Get Updates on the Splunk Community!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

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