For any of the proposed search to work, SubjectUserName in wineventlog must be an exact match of distinguishedName in adusers. Given aduser is based on Active Directory and that you are expecting LDAP-like format in distinguishedName, I highly doubt the two fields can match exactly. You are probably expecting SubjectUserName to match CN in DN, instead of matching DN itself. If this is the case, you cannot use simple lookup unless you can and are willing to modify aduser table. If modifying the table is not an option, you have to use inputlookup. This also means that the search is not going to perform too well if aduser is large. But you can try something like this. index=wineventlog EventCode IN (4720, 4726, 4738, 4724)
| join SubjectUserName
[| inputlookup adusers
| rename distinguishedName as _raw
| kv kvdelim="=", pairdelim=","
| where OU == "Information Technology"
| rename CN as SubjectUserName
]
... View more