Dashboards & Visualizations

escape/tab characters in xml dashboard

damucka
Builder

Hello,

I would like to add several tab characters in my html panel of xml dashboard to make my section more readable. It looks as follows:

<h1>What are the components (panels) of this dashboard?</h1>
<ul>
  <li>Currently Running Startup for host:       &#xA0;&#xA0;&#xA0;&#xA0; Running startup for the chosen host, refreshed each 2 min</li>
  <li>Last Startup for host:                    Runtimes of the startup phases for the last startup of the chosen host</li>
  <li>Average Startup Duration for host:        Average runtimes of the startup phases for the host</li>
  <li>Currently Running Startup Logs for host:  Progress of the startup logs, refreshed each 2 min</li>
</ul>

But repeating the

&#xA0

four times does not work, I get the tab escape only one single time.
How would I do this?

Kind REgards,
Kamil

Labels (2)
Tags (1)
0 Karma
1 Solution

vnravikumar
Champion

Hi

Try this also

<dashboard>
  <row>
    <html>
    <style>
      p.tab span {
        display: inline-block;
        min-width: 270px;
      }
    </style>
    <h1>What are the components (panels) of this dashboard?</h1>
    <p class="tab"><span>&#8226; Currently Running Startup for host:</span>Running startup for the chosen host, refreshed each 2 min</p>
    <p class="tab"><span>&#8226; Last Startup for host:</span>Runtimes of the startup phases for the last startup of the chosen host</p>
    <p class="tab"><span>&#8226; Average Startup Duration for host:</span>Average runtimes of the startup phases for the host</p>
    <p class="tab"><span>&#8226; Currently Running Startup Logs for host:</span>Progress of the startup logs, refreshed each 2 min</p>
 </html>
  </row>
</dashboard>

View solution in original post

0 Karma

vnravikumar
Champion

Hi

Try this also

<dashboard>
  <row>
    <html>
    <style>
      p.tab span {
        display: inline-block;
        min-width: 270px;
      }
    </style>
    <h1>What are the components (panels) of this dashboard?</h1>
    <p class="tab"><span>&#8226; Currently Running Startup for host:</span>Running startup for the chosen host, refreshed each 2 min</p>
    <p class="tab"><span>&#8226; Last Startup for host:</span>Runtimes of the startup phases for the last startup of the chosen host</p>
    <p class="tab"><span>&#8226; Average Startup Duration for host:</span>Average runtimes of the startup phases for the host</p>
    <p class="tab"><span>&#8226; Currently Running Startup Logs for host:</span>Progress of the startup logs, refreshed each 2 min</p>
 </html>
  </row>
</dashboard>
0 Karma

damucka
Builder

Thank you.
I like this solution, however I would have additional question:
The span looks fine, but what also changed is the line spacing, as if it would be double. This is btw same for the table solution.
Is there any way to keep the previous / single line spacing?

0 Karma

vnravikumar
Champion

Hi

Try this

<dashboard>
  <row>
    <html>
    <style>
      p.tab span {
        display: inline-block;
        min-width: 270px;

      }
      p{
        margin-bottom :0px;
      }
    </style>
    <h1>What are the components (panels) of this dashboard?</h1>
    <p class="tab"><span>&#8226; Currently Running Startup for host:</span>Running startup for the chosen host, refreshed each 2 min</p>
    <p class="tab"><span>&#8226; Last Startup for host:</span>Runtimes of the startup phases for the last startup of the chosen host</p>
    <p class="tab"><span>&#8226; Average Startup Duration for host:</span>Average runtimes of the startup phases for the host</p>
    <p class="tab"><span>&#8226; Currently Running Startup Logs for host:</span>Progress of the startup logs, refreshed each 2 min</p>
 </html>
  </row>
</dashboard>
0 Karma

manjunathmeti
Champion

Hi @damucka,

Use table element. It'll be easy to format.

<html>
   <h1>What are the components (panels) of this dashboard?</h1>
   <style>
      table {
      style="width:100%"
      }
      th, td {
      padding: 5px;
      text-align: left;    
      }
   </style>
   <table>
      <tr>
         <td>Currently Running Startup for host:</td>
         <td>Running startup for the chosen host, refreshed each 2 min</td>
      </tr>
      <tr>
         <td>Last Startup for host:</td>
         <td>Runtimes of the startup phases for the last startup of the chosen host</td>
      </tr>
      <tr>
         <td>Average Startup Duration for host:</td>
         <td>Average runtimes of the startup phases for the host</td>
      </tr>
      <tr>
         <td>Currently Running Startup Logs for host:</td>
         <td>Progress of the startup logs, refreshed each 2 min</td>
      </tr>
   </table>
</html>
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...