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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...