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
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