Splunk Search

Multiline table column header

yumlu
Engager

I have a table that has long column headers. Can i make these headers multi-line formatted?

old table headers:
Service Name Operation Name Request Count Success Count System Fault Count

my goal:
Service Operation Request Success System
Name Name Count Count Fault
Count

Tags (3)
0 Karma

woodcock
Esteemed Legend

I couldn't find any way to force Splunk to accept newlines inside field names so this is as good as I could get; tack this on to the end of your search:

... | rename "Service Name" AS "Service" "Operation Name" AS "Operation" "Request Count" AS "Request" "Success Count" AS "Success" "System Fault Count" AS "System" | append [search index=* | head 1 | stats count | eval "Service" = null() | eval "Operation" = null() | eval "Request" = null() | eval "Success" = null() | eval "System" = "Count" | fields - count] | append [search index=* | head 1 | stats count | eval "Service" = "Name" | eval "Operation" = "Name" | eval "Request" = "Count" | eval "Success" = "Count" | eval "System" = "Fault" | fields - count] | reverse
0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...