Splunk Search

Append Column Header Field with Multivalues

cchange
Path Finder

I need to show my table column header in below format. I need to get column name and static header under my column.

Students
Total/Pres/Abs

Can someone please let me know how I can get this format.

0 Karma
1 Solution

woodcock
Esteemed Legend

Like this:

| makeresults
| eval host="test"
| table host
| rename host as "Students
(Total/Pres/Abs)"

View solution in original post

0 Karma

woodcock
Esteemed Legend

Like this:

| makeresults
| eval host="test"
| table host
| rename host as "Students
(Total/Pres/Abs)"
0 Karma

cchange
Path Finder

Thanks it got worked.

0 Karma

gaurav_maniar
Builder

Please provide proper example with sample output and expected output.

0 Karma

cchange
Path Finder

search query | table students | rename students as Students (Total/Pres/Abs)

Current Output:
Students (Total/Pres/Abs)
100/80/20

Desired Output:
Students
(Total/Pres/Abs)

100/80/20

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...