Splunk Search

How to transform a table?

Edwin1471
Path Finder

Hi,

How can I transform a table, so that the result would look something like this

Edwin1471_0-1661347469987.png

 

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| transpose 0 header_field=Process column_name=Process

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @Edwin1471,

can you share the search you used to have those data?

Anyway, you could use the transpose command (https://docs.splunk.com/Documentation/Splunk/9.0.1/SearchReference/Transpose).

putting attention to the options.

Ciao.

Giuseppe

ITWhisperer
SplunkTrust
SplunkTrust
| transpose 0 header_field=Process column_name=Process

Edwin1471
Path Finder

To follow up,

How can I sort a table by column values, instead of rows after transposing it ?

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

I am not sure I understand what you are trying to do - the sort command will sort the events (rows) by values in the fields (columns) - can you give an example of what you are trying to achieve?

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