All Apps and Add-ons

How to center title of a panel in XML?

dperry
Communicator

I want the abilty to center the title of a panel...Is this possible? Currently the title Proxy Logs is viewed to the left and I want it centered. Here below is my xml code:






Proxy Logs
index=ent_apps sourcetype=web_logs event=ERROR | stats count as count | rangemap field=count low=0-0 elevated=1-10 severe=11-9999 default=gray
-24h@h
now
range
search
all
errors

0 Karma

guilmxm
Influencer

Hi,

Don't use the title within your view, let it empty and add an html module that you will center using a div.

Example:

  <row>
    <panel>
      <html>
      <div style="text-align: center;">
        <h1>MY TITLE</h1>
      </div>
    </panel>
  </row>

Otherwise, you'll have to play with css anyway if you still want to use the title and no html

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 ...