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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...