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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...