What field does the index search return that can be used to match sAMAcountName in ldapsearch? Assuming microsoft-windows-dc index has a field userName for this purpose, and assuming that the search doesn't return too many events, you can run map to run ldapsearch for each output directly. index=microsoft-windows-dc EventID=4738 NewUacValue=0x210
| map search="ldapsearch domain=default search=\"(sAMAccountName=$userName$)\" attrs=\"sAMAccountName,displayName,sn,UserTypeName\"" By default map limits to maxsearches to 10; you may need to set this higher if the main search returns more than 10 events. If you are only interested in certain statistics, and stats reduces number of rows significantly, run stats first. Your second question is really an application question. You need to read the documentation of ldapsearch.
... View more