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!

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...

Reminder! Splunk Love Promo: $25 Visa Gift Card for Your Honest SOAR Review With ...

We recently launched our first Splunk Love Special, and it's gone phenomenally well, so we're doing it again, ...