Splunk Search

help for formatting dashboard from xml

jip31
Motivator

hi
I would like to have a breaking line betweel the tag and and to have the tag in bold an red color
is it possible please??

<form>
  <label>Drivers</label>
  <description>Drivers health checking - Slot time : 30 days</description>
  <fieldset autoRun="false" submitButton="true">
    <input type="text" searchWhenChanged="true" token="tok_filterhost">
      <label>Hostname</label>
Tags (1)
0 Karma
1 Solution

niketn
Legend

@jip31 it is not clear from your question as to where (which tag) you want apply Bold Red text formatting? Is it for Dashboard Label or Description?

If it is for Dashboard Description <description> (PS: Following is tested on Splunk 7.2. If you are on previous version of Splunk and the following CSS does not work then CSS selector may need some change which you can do via Browser Inspector Tool. Refer to one of my older answers to play around with Browser Inspector Tool: https://answers.splunk.com/answers/590387/how-do-i-update-panel-color-in-splunk-using-css-1.html):

 <form>
   <label>Drivers</label>
   <description>Drivers health checking - Slot time : 30 days</description>
   ....
    <row depends="$alwaysHideCSSPanel$">
       <panel>
           <html>
               <style>
                   .dashboard-header p.description {
                       font-weight: bold;
                       color: red;
                       padding-top: 20px;
                   }
               </style>
           </html>
        </panel>
    </row>
...

Please try out and confirm!

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

niketn
Legend

@jip31 it is not clear from your question as to where (which tag) you want apply Bold Red text formatting? Is it for Dashboard Label or Description?

If it is for Dashboard Description <description> (PS: Following is tested on Splunk 7.2. If you are on previous version of Splunk and the following CSS does not work then CSS selector may need some change which you can do via Browser Inspector Tool. Refer to one of my older answers to play around with Browser Inspector Tool: https://answers.splunk.com/answers/590387/how-do-i-update-panel-color-in-splunk-using-css-1.html):

 <form>
   <label>Drivers</label>
   <description>Drivers health checking - Slot time : 30 days</description>
   ....
    <row depends="$alwaysHideCSSPanel$">
       <panel>
           <html>
               <style>
                   .dashboard-header p.description {
                       font-weight: bold;
                       color: red;
                       padding-top: 20px;
                   }
               </style>
           </html>
        </panel>
    </row>
...

Please try out and confirm!

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

jip31
Motivator

PERFECT THANKS

0 Karma

niketn
Legend

@jip31 if this worked for you, do accept/up-vote the answer to mark this question as answered!

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco &#43; Splunk! We’ve ...

Enterprise Security Content Update (ESCU) | New Releases

In April, the Splunk Threat Research Team had 2 releases of new security content via the Enterprise Security ...