Dashboards & Visualizations

How to add a subtitle in simple xml?

RiccardoV
Communicator

Hi, I am building a dashboard using Splunk 6.1.1 and Simple Xml.
I have a table like this:

<table>
  <title>IP grouped by country</title>
  <searchPostProcess>| stats count by country</searchPostProcess>
  <option name="link.visible">false</option>
  <drilldown>
    <set token="categories">$row.country$</set>
  </drilldown>
</table>

my table

I have a drilldown here, and I would like to add a line saying "click on a row for more details". How can I add a text line (like a subtitle) under the title of the table? I tried with the tags <label> and <description> with no success.

thanks!

1 Solution

somesoni2
Revered Legend

You may want to remove the title from

and display the table in html module itself.

<row grouping="2">
    <html>
    <h2>Table Title</h2><br/>
    Click on the row
    </html>
    <table>      
      <searchString>|stats count  | eval Metric="$Metric$" | table Metric</searchString>
      <earliestTime>-1d</earliestTime>
      <latestTime>now</latestTime>     
    </table>
  </row>

View solution in original post

nfilippi_splunk
Splunk Employee
Splunk Employee

@somesoni2 is spot on here!

If you are using 6.1+, I would recommend the use of rather than row grouping, as the preferred/explicit syntax moving forward. In this case, you want both of these dashboard elements to be contained within the same panel, so the syntax should look something like this.

<row>
    <panel>
       <html>
          <h2>Table Title</h2><br/>
             Click on the row
       </html>
       <table>      
          <searchString>|stats count  | eval Metric="$Metric$" | table Metric</searchString>
          <earliestTime>-1d</earliestTime>
          <latestTime>now</latestTime>     
       </table>
   </panel>
</row>

RiccardoV
Communicator

thanks for your answer, but maybe the app will be used on some splunk 6.0, I don't know exactly which version they will use!

0 Karma

somesoni2
Revered Legend

You may want to remove the title from

and display the table in html module itself.

<row grouping="2">
    <html>
    <h2>Table Title</h2><br/>
    Click on the row
    </html>
    <table>      
      <searchString>|stats count  | eval Metric="$Metric$" | table Metric</searchString>
      <earliestTime>-1d</earliestTime>
      <latestTime>now</latestTime>     
    </table>
  </row>

RiccardoV
Communicator

grouping="2" made my day, thanks!

0 Karma

DavidHourani
Super Champion

You could simply add a small HTML pannel saying "click on a row for more details" and have that panel added to the same group as your table 🙂

Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.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 ...