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!

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

What are Community Office Hours?Community Office Hours is an interactive 60-minute Zoom series where ...

Updated Data Type Articles, Anniversary Celebrations, and More on Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

A Prelude to .conf25: Your Guide to Splunk University

Heading to Boston this September for .conf25? Get a jumpstart by arriving a few days early for Splunk ...