Getting Data In

Filter using a lookup.

aly347774
Loves-to-Learn Lots

I want to write a query whose purpose is to print for users who are not authorized to enter, and of course with the presence of a lookup table, the people who are authorized to enter are present in it.

Labels (5)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Please share some anonymised sample events to show what you are working with

0 Karma

aly347774
Loves-to-Learn Lots

index="(index name)" sourcetype=source type (host="host1" OR host="host2")
| search NOT [| inputlookup (lookup table name ) | table username] action=success | stats values(username) as user

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

OK it looks like it should work - what is your question?

0 Karma

aly347774
Loves-to-Learn Lots

It does not retrieve the blacklist, but rather it retrieves some of the whitelist. I want to make it pass through the lookuptable and show the user who is not authorized to enter.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

The principle of what you are doing is correct. So, if it is not working, it may come down to the actually data, which understandably you might not want to share. How are the values which are getting through different to the ones which are being removed? How large is your lookup table? Are there any special characters being used?

Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...