Splunk Search

How to filter results from Lookup?

alexspunkshell
Contributor

In my search results, I have multiple results for "Alert" & "UPN"

I want to only include "Alert=Anonymous IP address" for specific 10 "UPN" and other results to ignore.

So I made a lookup table to filter it. However, multiple other "Alert" results are also included in my search results for the "UPN"

Query

........
| lookup Trusted_Anonymizer Alert_UPN as UPN 
| eval Anonymizer_alert=if(Anonymizer_alert="whitelisted_user","Yes","No")
| search  Anonymizer_alert=Yes
|table  Alert_Titles, UPN, MFAStatus, count, Anonymizer_alert

Spoiler
Spoiler
........
| lookup Trusted_Anonymizer Alert_UPN as UPN 
| eval Anonymizer_alert=if(Anonymizer_alert="whitelisted_user","Yes","No")
| search  Anonymizer_alert=Yes
|table  Alert_Titles, UPN, MFAStatus, count, Anonymizer_alert



 

 

alexspunkshell_0-1623320425575.png

alexspunkshell_1-1623320545494.png

alexspunkshell_2-1623320621082.png

 

@scelikok @soutamo @saravanan90 @thambisetty @ITWhisperer @gcusello @bowesmana   @to4kawa @woodcock 

 

Labels (3)
0 Karma
1 Solution

to4kawa
Ultra Champion

The data and lookup samples are not obvious, so I am not sure.

 

alert="Anonymous IP address" | lookup ....

I suppose the order is this.

 

View solution in original post

to4kawa
Ultra Champion

The data and lookup samples are not obvious, so I am not sure.

 

alert="Anonymous IP address" | lookup ....

I suppose the order is this.

 

Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...