Dashboards & Visualizations

Hidden value in table

shangshin
Builder

Hi,
Is it possible to have a hidden value in the table meaning the values are invisible to the end user. This hideen value will be later used in the dynamic drilldown url.

Thanks in advance!

Tags (2)
0 Karma
1 Solution

LukeMurphey
Champion

The ability isn't officially supported but you can manage with a bit of CSS. Just place CSS in $SPLUNK_HOME/etc/apps/YOUR_APP/appserver/static/application.css that hides the column. Below is an example below that hides the 8th column:

/*
 * Hide the 8th column:
 */
.splView-YOUR_VIEW_NAME .SimpleResultsTable tr td:nth-of-type(8),
.splView-YOUR_VIEW_NAME .SimpleResultsTable tr th:nth-of-type(8){
     display:none;   
}

You will need to make that selector more specific if you have multiple tables on that page (just use the ID of the relevant SimpleResultsTable).

This technique works in simple XML and advanced XML.

View solution in original post

0 Karma

nfilippi_splunk
Splunk Employee
Splunk Employee

As of Splunk 6.0 or 6.1, this is fully supported in Simple XML.

Use the option within table to enumerate the list and order of fields for final display, which may be a subset of the fields returned in the search results. Note that you still have access to all fields returned from the search results ($row.field_name$) to use in drilldown.

http://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#fields

LukeMurphey
Champion

The ability isn't officially supported but you can manage with a bit of CSS. Just place CSS in $SPLUNK_HOME/etc/apps/YOUR_APP/appserver/static/application.css that hides the column. Below is an example below that hides the 8th column:

/*
 * Hide the 8th column:
 */
.splView-YOUR_VIEW_NAME .SimpleResultsTable tr td:nth-of-type(8),
.splView-YOUR_VIEW_NAME .SimpleResultsTable tr th:nth-of-type(8){
     display:none;   
}

You will need to make that selector more specific if you have multiple tables on that page (just use the ID of the relevant SimpleResultsTable).

This technique works in simple XML and advanced XML.

0 Karma

shangshin
Builder

Thanks a lot for the advice!

0 Karma

rroberts
Splunk Employee
Splunk Employee

Is this still current?

0 Karma

jonuwz
Influencer

Not in the base product - but yes in sideview utils

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

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