Splunk Search

Format table

rissois
Observer

I've a search that return a table like this:

column1             column2               column3

      a                            x                           value1

                                                                 value2

                                                                  value3

      b                            y                           value1

                                                                  value2

                                                                  value3

 

I need column3 values ​​to appear separated by "|", like this:

column1             column2               column3

      a                            x                           value1|value2|value3

      b                            y                           value1|value2|value3

 

it is possible format data like this?

Labels (1)
0 Karma

Thulasinathan_M
Contributor

Hi,

Append below lines, hope it'll work.

| eval column3 = mvjoin(column3, "|")
| table column1, column2, column3

rissois
Observer

it works. thank you

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...