| ldapsearch domain=default search="(sAMAccountNAme=%user%)" attrs="memberOf"
, is the query I am using but I want to filter the results to only include users that are part of a Citrix group, is there a way?
| stats count
| eval user=split("Allice,Bob,Smith,Ken,Cathey,Jeff,Tom,Bekkey",",")
| mvexpand user
| eval count=random() % 2
| eval memberOf=case(count==1,"Citrix",count==0,"notCitrix")
| fields user,memberOf
| where memberOf=="Citrix"
Hi, This is sample query.
| ldapsearch domain=default search="(sAMAccountNAme=%user%)" attrs="sAMAccountNAme,memberOf"
| where memberOf=="Citrix"
How about this? please change Citrix to an appropriate name.
| stats count
| eval user=split("Allice,Bob,Smith,Ken,Cathey,Jeff,Tom,Bekkey",",")
| mvexpand user
| eval count=random() % 2
| eval memberOf=case(count==1,"Citrix",count==0,"notCitrix")
| fields user,memberOf
| where memberOf=="Citrix"
Hi, This is sample query.
| ldapsearch domain=default search="(sAMAccountNAme=%user%)" attrs="sAMAccountNAme,memberOf"
| where memberOf=="Citrix"
How about this? please change Citrix to an appropriate name.
Let me give this a go, will report back
This has seemed to scratch the itch I had with filtering by group, thanks @to4kawa .
your welcome, happy Splunking
by the way
% user% → $ user $
it might be?
Thanks, yeah I always mix those two up all good!
Yes, Happy Splunking.