Splunk Search

Multiple values are showing in the single field after joining the lookup.

LRathinakumar
Explorer

Hello Splunkers,

I have two lookups which are need to join. In lookup1.csv its containing the Rule name and the technique id in the columns and in lookup2.csv it contains the technique id and the tactic name in the columns. Now i have joined the two lookups and got the result. Now the problem i am facing is that if the rule is having the multiple tactics name then the output result is displaying them in the same single field (screenshot attached). But i need the result as if the rule is having two tactic names then it should display 2 times the rule name and the tactic names individually.

the query i used to join the lookups is

| inputlookup lookup1.csv | lookup lookup2.csv technique_id

 

LRathinakumar_0-1676825771880.png

 

Waiting for the response....

 

Thanks in advance

0 Karma
1 Solution

yuanliu
SplunkTrust
SplunkTrust

Maybe your ask is mvexpand?  Not totally sure of your requirement.

| inputlookup lookup1.csv
| lookup lookup2.csv technique_id
| mvexpand tactic_name

View solution in original post

yuanliu
SplunkTrust
SplunkTrust

I suppose you are referring to the row with technique_id T1550.  Maybe lookup2 does contain multiple matches?  What does this search give you?

| makeresults
| fields - _time
| eval technique_id = "T1550"
| lookup lookup2.csv technique_id

If this returns the same two tactic_name, there is no problem with your search.

0 Karma

LRathinakumar
Explorer

Hello @yuanliu 

Thank you for the response...

Yes the lookup2.csv contains the multiple matches. The screenshot attached is the results for that search. In that screenshot you can see that the T1550 is having the two tactic names. So what is need is that the two tactic names should come separately with the rule name and the technique name again.... So how can i get it .....


Thanks i advance...

0 Karma

yuanliu
SplunkTrust
SplunkTrust

Maybe your ask is mvexpand?  Not totally sure of your requirement.

| inputlookup lookup1.csv
| lookup lookup2.csv technique_id
| mvexpand tactic_name
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...