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

0 Karma

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!!!"
0 Karma

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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...