Splunk Search

How to add a row in a table based on the value of the cell?

fperalde
Engager

Hello,

Here is my data! Basically everything is in the same table, however I separated to better explain my problem! 

number

customer

ref

1

1

A

2

1

B

3

1

C

4

2

D

 

number

customer

ref

2-1

X

B

2-2

X

B

3-1

X

C

 

I would like a table that groups all the data as you can see here, with an order as you can see made by a correlation on the "ref" :

number

customer

ref

1

1

A

2

1

B

2-1

X

B

2-2

X

B

3

1

C

3-1

X

C

4

2

D

 

I have already tried many things, the map, the append, the foreach, etc. 

Do you have any ideas?

Thank you

Labels (3)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Does this give you what you want?

| sort 0 ref number

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

Does this give you what you want?

| sort 0 ref number
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 ...