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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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