Splunk Search

Comparing two fields from events with fields from a list Lookup

nalia_v
Loves-to-Learn Everything

Hello.

Again, these lookups ). The hardest thing about queries.

The request itself is the identification of users who logged in not from their workstation.

index=windows user!=*$ 
|search (EventCode=4776 OR EventCode=4624)
|transaction user startswith=(EventCode="4624") endswith=(EventCode="4776")
|lookup workst_user hostname as Source_Workstation OUTPUT user as login
|table _time,EventCode,user,Source_Network_Address,Source_Workstation,dest_nt_host,name,status,dest,Logon_Type,Logon_Process

Fields from Source_Workstation and user events are compared. Fields from the hostname and login list workst_user.

The comparison itself - machines are compared among themselves, and users are among themselves. If any of the comparisons is incorrect, the output of non-matching fields in the event is incorrect. How to build the right look from these conditions ?

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

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...