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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...