Splunk Search

How to hide columnName from table?

dezmadi
Path Finder

I want to hide columName from 2nd row onwards for below table

<row>
<panel>
<title>STATS : SLI/SLO Dashboard count</title>
<table>
<search base="pubsubLatencyHighAckDelayDFBaseSearch">
<query> | stats values(serviceName) as serviceName count(eval(error=="failure")) as failureCount count(eval(error=="warning")) as warningCount</query>
</search>
</table>


<html depends="$dontshow$">
<style>
#tableWithHiddenHeader1 thead{
visibility:hidden;
display:none;
}
</style>
</html>
<table id="tableWithHiddenHeader1">
<search base="dfLatencyOverallProcessingDelayBaseSearch">
<query> | stats values(serviceName) as serviceName count(eval(error=="failure")) as failureCount count(eval(error=="warning")) as warningCount</query>
</search>
</table>
</panel>
</row>

 

However when I am using visibility:hidden; display:none;  Alignment is bad, Attach is the screenshot

Labels (1)

iManu
Engager

Hey,

for me instead of visibility:hidden and display:none "visibility: collapse" worked just fine.

So just change your style to:

<style>
#tableWithHiddenHeader1 thead tr{
visibility: collapse;
}
</style>

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...