Splunk Search

How to allow users to view some search results from an index in a dashboard, without allowing them to search the index?

gwalford
Path Finder

There is a lot of useful detail in the index=wineventlog. I would like to be able to allow my front tier service desk access to dashboards that show things such as "user accounts locked out" or "print job failed".

However, I don't want them to have any access to the wineventlog index itself.

Is there a way of generating a report off of one index say, and moving the results to a separate index so that they don't gain access to the remainder of the information in the index?

0 Karma

Jeremiah
Motivator

You have a couple of ways to implement this.

To answer your initial question, yes, you could use summary indexing to copy (not move) events from one index into another. That is not the original intent of summary indexing, but you could certainly have a scheduled search pick out the events you want to expose to your help desk and "summarize" them into another index. That would work best if you had a small number of events that you wanted to expose.

http://docs.splunk.com/Documentation/Splunk/6.3.2/Knowledge/Usesummaryindexing

Another option would be to create the dashboard using saved searches, and have those searches run as the owner, who has access to the index. Then your users can access the dashboard, view the results of the search without needing access to the underlying index.

See the section "Determine whether the search should run as Owner or run as User" in the following link:

http://docs.splunk.com/Documentation/Splunk/latest/Report/Createandeditreports

You can also restrict your user's access by adding a search expression to their role. This will allow you to give them access to the wineventlog index, but they effectively would only be able to see certain events as specified by the role search expression.

https://docs.splunk.com/Splexicon:Searchfilter

Get Updates on the Splunk Community!

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

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

What's New in Splunk Observability Cloud and Splunk AppDynamics - May 2025

This month, we’re delivering several new innovations in Splunk Observability Cloud and Splunk AppDynamics ...