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!

Happy CX Day to our Community Superheroes!

Happy 10th Birthday CX Day!What is CX Day? It’s a global celebration recognizing innovation and success in the ...

Check out This Month’s Brand new Splunk Lantern Articles

Splunk Lantern is a customer success center providing advice from Splunk experts on valuable data insights, ...

Routing Data to Different Splunk Indexes in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. The OpenTelemetry project is the second largest ...