Splunk Search

help for formatting dashboard from xml

jip31
Builder

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

niketnilay
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

niketnilay
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

jip31
Builder

PERFECT THANKS

0 Karma

niketnilay
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
Did you miss .conf21 Virtual?

Good news! The event's keynotes and many of its breakout sessions are now available online, and still totally FREE!