Splunk Enterprise

Issue in excluding some results via Lookup table

Erfan110
Loves-to-Learn

Hi everyone
I created a look up table:

 

Department,Vendor,Type,url_domain,user,src_ip,Whitelisted
BigData,Material,Google Remote Desktop,Alpha.com,Alice,172.16.28.12,TRUE

 

Then I created a look up definition with this match type:

 

WILDCARD(url_domain), WILDCARD(user), WILDCARD(src_ip)

 

Then I tested it on following search but it didn't work.

 

index=fortigate src_ip=172.16.28.12 url_domain=Alpha.com
| lookup Whitelist url_domain user src_ip
| where isnull(Whitelisted)
| table _time, severity, user, url_domain, src_ip, dest_ip, dest_domain, transport, dest_port, vendor_action, app, vendor_eventtype, subtype, devname

 

and shows all results including traffic from 172.16.28.12 by Alice to the mentioned url 
Anyone has any idea what is the issue?


Labels (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust
Department,Vendor,Type,url_domain,user,src_ip,Whitelisted
BigData,Material,Google Remote Desktop,Alpha.com,Alice,172.16.28.12,TRUE

Are you sure you copy-pasted whole lines?

First line has 8 fields, second one has 7.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

@PickleRick Both have 7

0 Karma

PickleRick
SplunkTrust
SplunkTrust

OK. I'm either overworked or blind. I counted them several times and always came up with the same 8/7 numbers.

You're right. They both have 7 fields.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Setting up the lookup the way you described and using makeresults to generate events (rather than an index search) works for me as expected.

So, perhaps your real data or lookup is inconsistent with the description you gave, or you have found a bug. Which version of Splunk are you using?

0 Karma

Erfan110
Loves-to-Learn

Hi
You mean it excluded that traffic? Because I expect it to exclude the traffic from my results.

version 9.0

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Yes, it worked

ITWhisperer_0-1705656501836.png

ITWhisperer_1-1705656568545.png

 

0 Karma

Erfan110
Loves-to-Learn

Hi
thanks for your response.
I tried same and it is working. but it does not work on my real data. 
The problem is IP Address. When I removed src_ip from lookup command it works on real records. But I cannot understand what is the problem!
I checked the name of the field in events and tried srcip and src_ip, both did not work. 

Regards

0 Karma
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!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...