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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...