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!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...