Splunk Search

how to merge data from different two source ?

sangjoonlee
New Member

my data is csv file

My data below

source = A1
field name = a1, b1, c1,...

soruce = A2
field : a1, b2, c2,...
field : a1, b3, c3,..
field : a1, b4, c4,..
.
.
.

.

I wand to make a table

a1, b1, c1, b2, c2
a1, b1, c1, b3, c3
a1, b1, c1, b4, c4

Tags (3)
0 Karma
1 Solution

hhGA
Communicator

Hi sangjoonlee,

If a1 is present in both sources then you can use join:

<source 1 search> | join a1 [search <source 2 search> | table a1, b1, c1, b2, c2]

Hope this helps.

View solution in original post

hhGA
Communicator

Hi sangjoonlee,

If a1 is present in both sources then you can use join:

<source 1 search> | join a1 [search <source 2 search> | table a1, b1, c1, b2, c2]

Hope this helps.

sangjoonlee
New Member

thank you.

0 Karma

3no
Communicator

a1 field is in both file ? In every line ?

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...