Splunk Search

Assets Consolidation - Searching and Comparing fields with multiple IP Addresses

munisb
Explorer

Hi,

I have this query where I am trying to compare two csv files and have the assets data merged

CSV1

hostipos
abc.domain.com1.1.1.1Windows
def2.2.2.3suse
xyz3.3.3.3aix
   

 

CSV2

NameIP AddressesDescriptionOS
abc1.1.1.1blah blahwindows
abc.domain.com1.1.1.1, 2.2.2.1blah blahwindows
bcd1.1.1.2, 2.2.2.2blah blahwindows
def.domain.com1.1.1.3, 2.2.2.3blah blahsuse
xyz blah blahaix

 

| inputlookup CSV1.csv | lookup CSV2.csv "IP Addresses" as ip | table Name, host, ip, OS, os | fillnull Name value="Not Found"

With this query - for some reason i am not able to correlate assets that have multiple "IP Addresses" in CSV2. How can I ensure that any value in the cell is searched instead of having an exact match?

 

Thank you

Labels (4)
0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...