Getting Data In

Is it possible to remove the header in after transposing

Sampathu
Explorer

I am using the untable command instead of transpose and my result looks like

Metrics Value
cpu_core 4
ram_size 8

Can i use any command so that i don't get the header itself. My result must look like(after removing header Metrics and Value)

cpu_core 4
ram_size 8

Tags (3)
0 Karma

jkat54
SplunkTrust
SplunkTrust

... | rename Metrics as " " Value as " "

Try that, or do space dot space, etc. I'm putting more than one space between the second quotes but the forum is changing to one space

0 Karma

sundareshr
Legend

Do these two columns have names? You could try | search col2!="Value"

Out of curiosity, why are you using untable or transpose command? You should be able to get the desired result with just the table command like this table Metric Value

0 Karma

Sampathu
Explorer

No. In my actual search the result is

cpu_core ram_size
4 8

query = original search......... | untable _time Metrics Value... (I know how to remove the _time field )
when I untable them i get it as

Metrics Value
cpu_core 4
ram_size 8

Am curious to know whether we can remove the headers itself!!

0 Karma

somesoni2
Revered Legend

What visualization you're try to use? If you're using table, then a table need it's header/column name. You can try html visualization in you can you need custom visualization.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...