Splunk Search

Restricted search question

klim
Path Finder

I am trying to set up a restricted search for a role so that they can only see data when a field1=customer01. The default way was to do it by field1::customer01 but that didn't show any results when I previewed the results. Instead I did field1=customer01 and that worked. Is there a reason why field1::customer01 doesn't generate any results?

Labels (2)
Tags (1)
0 Karma

venkatasri
SplunkTrust
SplunkTrust

Hi @klim 

Splunk advises to use indexed fields for searchFilter, in your case field1 is a non indexed field so if you wish  to avoid security issue you shall covert field1 to a indexed field and use :: which is a best practice.

Using = Operator  a smart splunk user using 'user knowledge Objects' (means they are scoped to user itself not shared across) can take  advantage and bypass filter to query the data that they are not supposed to access. 

-------------------------------------------------------------------

An upvote would be appreciated if it helps!

0 Karma

venkatasri
SplunkTrust
SplunkTrust

Hi @klim 

Your 'field1'  could be a search-time field. :: works for indexed fields.

---------------------------------------------------

An upvote would be appreciated if it helps!

klim
Path Finder

@venkatasri thanks that helps. Is it okay to use field1=cust01 ? I have tested it and it works but splunk just said there may be a security concern mentioned below in the docs at the bottom of the page.

https://docs.splunk.com/Documentation/Splunk/8.0.3/Security/Addandeditroles?ref=hk  

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...