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!

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...