Dashboards & Visualizations

Form line break in description

pbarbuto
Path Finder

I cant figure on the simple XML to have a second line in the description of a dashboard.

Here's what I have:

Label
Description1. Description2.

Here's what I want:

Label
Description1.
Description2.

Any help is appreciated.

Tags (2)
1 Solution

yuanliu
SplunkTrust
SplunkTrust

A workaround can be to place <html> inside <fieldset> even if you do not plan to add <input>. (If you have no <input>, make sure to make submitButton="false".)

You can always add a blank <row> with only <html> in it. This is not exactly a workaround because <html> work the same way as in any other <row>. It also has the side effect of showing in a different background colour from .

View solution in original post

nick405060
Motivator

Technically you can add a line break in your description by adding one whitespace after your first line, adding an entire line of non-whitespace characters (enough to force a newline), adding one whitespace after that, and then adding your next line.

<description>First line ____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ Second line</description>

This gives me:

First line
-------------------------------------------------------------------------------------------------------------
Second line

(Looks better in Splunk)

It's not elegant, and is going to give you resizing/browser problems, but Splunk's SimpleXML was designed by a 5 year old, so

0 Karma

sansay
Contributor

"5 year old" sounds about right!
I used to do great things with Advanced XML, now I am struggling just to make radio buttons work correctly and prevent table queries from running immediately upon loading a dashboard.

yuanliu
SplunkTrust
SplunkTrust

A workaround can be to place <html> inside <fieldset> even if you do not plan to add <input>. (If you have no <input>, make sure to make submitButton="false".)

You can always add a blank <row> with only <html> in it. This is not exactly a workaround because <html> work the same way as in any other <row>. It also has the side effect of showing in a different background colour from .

pbarbuto
Path Finder

Thanks! I didn't know I could add html in there.

0 Karma

woodcock
Esteemed Legend

I have never found a way to do this. In the Panels, you can comment out the title tag and use your own html and then use <br> but Splunk will not allow html in the dashboard node.

0 Karma

sugreev916
Observer

How can I split a single value into two separate values in a single value panel?

Currently, my single value panel displays:

Total :100 Error: 20

I would like to display:

Total: 100
Error :20  

It works for a table, but not for a single value panel. How can I achieve this?

0 Karma
Get Updates on the Splunk Community!

Developer Spotlight with Brett Adams

In our third Spotlight feature, we're excited to shine a light on Brett—a Splunk consultant, innovative ...

Index This | What can you do to make 55,555 equal 500?

April 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...