Splunk Enterprise Security

How to merge multiple lookup field values into single field value

lksridhar
Explorer

Hi Folks,

I have two lookup files which contain the user information such as username, email and company.

for example:

1. First lookup file.

user               email                               company

siva              siva11@gmail.com     google

arun              arun11@gmail.com

2. Second lookup file.

user             email                                company

arun            arun11@gmail.com   yahoo

how to merge the two lookup files and merge the value.

the expected output should be like this.

user     email                                company

siva    siva11@gmail.com      google

arun   arun11@gmail.com    yahoo

 

Could you please anyone suggest to get the expected results.

 

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@lksridhar 

Try something like,

|inputlookup first_lookup.csv | append [|inputlookup second_lookup.csv ]| stats values(*) as * by user

 

KV 

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 ...