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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...