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!

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

❄️ Celebrate the season with our December lineup of Community Office Hours, Tech Talks, and Webinars! ...

Splunk and Fraud

Watch Now!Watch an insightful webinar where we delve into the innovative approaches to solving fraud using the ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...