Splunk Search

Is it possible to have another column header on top of a column header?

rajyah
Communicator

So basically it'll be like this...

alt text

I wanna know if there's a way for Column 2 and Column 3 to have their 'Mother' header.

I'm really sorry if this was already asked, I just don't know the term to be used to search in this website. Please help.. I thank you in advance!

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@rajyah

Have you tried header_field parameter?

http://docs.splunk.com/Documentation/Splunk/7.1.3/SearchReference/Transpose

Thanks

0 Karma

rajyah
Communicator

Thanks for the response sir, it seems that someone already solved their problem without using header_field.

https://answers.splunk.com/answers/646424/transpose-multiple-column-headers.html

I don't get what he did... I'm sorry I'm still new in using splunk.

0 Karma

rajyah
Communicator

And sir, about your header_field. Can you please give me an example which uses _internal index?

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

sure.
Please execute below two searches. You can find the purpose of header_field in transpose.

index=_internal | stats count by sourcetype | transpose 


index=_internal | stats count by sourcetype | transpose header_field=sourcetype 

If this answer helps you then accept and upvote it to help community.

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@rajyah
Have you tried above searches?

0 Karma
Get Updates on the Splunk Community!

Fall Into Learning with New Splunk Education Courses

Every month, Splunk Education releases new courses to help you branch out, strengthen your data science roots, ...

Super Optimize your Splunk Stats Searches: Unlocking the Power of tstats, TERM, and ...

By Martin Hettervik, Senior Consultant and Team Leader at Accelerate at Iver, Splunk MVPThe stats command is ...

How Splunk Observability Cloud Prevented a Major Payment Crisis in Minutes

Your bank's payment processing system is humming along during a busy afternoon, handling millions in hourly ...