Splunk Search

not getting output

risingflight143
Explorer

Hi All I am using Office365,  i have an office365 unified group and users are getting removed from this office365 group automatically everyday.  I want to get the data who has removed or added the users to this group. When i use the below query, I am not getting any output please guide me. Lets say my group name is MyGroup1 and its email address is MyGroup1@contoso.com

sourcetype=o365:management:activity (Operation="*group*") unifiedgroup="*MyGroup1*"
| rename ModifiedProperties{}.NewValue AS ModAdd
| rename ModifiedProperties{}.OldValue AS ModRem
| rename UserId AS "Actioned By"
| rename Operation AS "Action" | rename ObjectId AS "Member"
| rename TargetUserOrGroupName as modifiedUser
| table _time, ModAdd, ModRem, "Action", Member, "Actioned By" "modifiedUser"
| stats dc values("modifiedUser") by Action "Actioned By"
0 Karma

marnall
Motivator

If you are getting no output, I would recommend removing the lines of the search one by one from the end until you get output, so you can narrow down your troubleshooting to the problematic line. Do you get any output if you remove the last line:

| stats dc values("modifiedUser") by Action "Actioned By"

 

0 Karma
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...