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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...