Dashboards & Visualizations

restrict user from seeing panel query in dashboard

shugup2923
Path Finder

I am not sure but is there any way to hide Panel query from dashboard for users of the dashboard.
In short, User should not see the query behind the panel after hovering over the search bar on panel.They should only see the results.

Tags (1)
0 Karma
1 Solution

jawaharas
Motivator

You can use "Panel Visualization Elements'.

Use the syntax shown below within each panel element:

 <!-- disable all panel links -->
 <option name="link.visible">false</option>

 <!-- selectively disable each of the links -->
 <option name="refresh.link.visible">false</option>
 <option name="link.openSearch.visible">false</option>
 <option name="link.inspectSearch.visible">false</option>
 <option name="link.exportResults.visible">false</option>

Reference:
https://docs.splunk.com/Documentation/Splunk/6.1.4/Viz/PanelreferenceforSimplifiedXML#Panel_visualiz...

View solution in original post

jawaharas
Motivator

You can use "Panel Visualization Elements'.

Use the syntax shown below within each panel element:

 <!-- disable all panel links -->
 <option name="link.visible">false</option>

 <!-- selectively disable each of the links -->
 <option name="refresh.link.visible">false</option>
 <option name="link.openSearch.visible">false</option>
 <option name="link.inspectSearch.visible">false</option>
 <option name="link.exportResults.visible">false</option>

Reference:
https://docs.splunk.com/Documentation/Splunk/6.1.4/Viz/PanelreferenceforSimplifiedXML#Panel_visualiz...

shugup2923
Path Finder

Thanks it helps , There is one more case -
If we allow user to open search from panel of a dashboard, after opening the search user should only see the result not the query behind it, Is it possible ?

0 Karma

jawaharas
Motivator

Glad it helped you.

Regarding your new requirement, why you want to do that when the user can able to see the results already in the dashboard panels?

0 Karma

shugup2923
Path Finder

Specifically I need to use this in drilldown option, when we use 'On-click' as 'link to search'.
In that particular case I need user to see only result not the query.

0 Karma

sh254087
Communicator

I know it's an old question, but still trying to answer just in case if it helps someone who'd come here.

In this scenario there are two options - 

  1. A drilldown table (I know you mentioned link to search, but still mentioning this as this is the most suited approach than a link to search)
  1. Select manage tokens from drilldown options, instead of open in search.
  2. Set a token value for on-click. ex. showDetails="true" (also, here you can either show a common data/table or show separate data based on the clicked value, set the token value accordingly)
  3. In the next row, add a table with your query and specify depends="$showDetails$" in the row element.
  4. In step b, if you've decided for a specific value based tables or queries, you will have to modify the query in step c to use that token value in your query so that the data shows up in relation to the value clicked / passed. Likewise, you can add one more token and one more table with different token value.
  5. To hide the table that shows up after the on-click action on the main table, edit drill down on the sub-table and select manage token. Here unset the used tokens. Now whenever the user clicks on this sub-table, it'll disappear.

With this, you need not navigate the user to a different page, also, need not worry about showing up the query behind your subsearch.

2. A saved report or a separate dashboard

  1. a. run a search with your query for the drill down which you want to show on-click. 
  2. b. save it as a report or a separate dashboard
  3. c. from the edit drill down option on the main dashboard table, map this report/dashboard. this was it'll not show up the search query.

In any case, make sure to specify the link.visible=false in your all dashboards/panels, like mentioned in the solution of the main question in this page. Without this, the user will still be able to open the query in a new search window.

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