Splunk Search

Removing Column Headings with Sparkline

balcv
Contributor

I have created a search including sparkline:

index=_* type="threat" severity="medium"  | stats sparkline count | table sparkline

and when it displays, I get the heading "sparkline" above the resultant chart, but I would like to remove that heading so that I only see the sparkline.

Tags (2)
0 Karma
1 Solution

vnravikumar
Champion

Hi @balcv

Try this and let me know

<dashboard>
  <label>sparkline</label>
  <row>
    <panel>
      <html>
        <style>
          #test th[data-sort-key="sparkline"]{
          display:none !important;
          }
        </style>
      </html>
      <table id="test">
        <search>
          <query>index=_* type="threat" severity="medium"  | stats sparkline count | table sparkline</query>
          <earliest>0</earliest>
          <latest></latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</dashboard>

View solution in original post

chrisyounger
SplunkTrust
SplunkTrust

You can also use |rename sparkline as " "

0 Karma

vnravikumar
Champion

Hi @balcv

Try this and let me know

<dashboard>
  <label>sparkline</label>
  <row>
    <panel>
      <html>
        <style>
          #test th[data-sort-key="sparkline"]{
          display:none !important;
          }
        </style>
      </html>
      <table id="test">
        <search>
          <query>index=_* type="threat" severity="medium"  | stats sparkline count | table sparkline</query>
          <earliest>0</earliest>
          <latest></latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</dashboard>

balcv
Contributor

Perfect, that's exactly what I was after. Simple when you know how. Thank you.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...