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!

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Community Feedback

We Want to Hear from You! Share Your Feedback on the Splunk Community   The Splunk Community is built for you ...

Manual Instrumentation with Splunk Observability Cloud: Implementing the ...

In our observability journey so far, we've built comprehensive instrumentation for our Worms in Space ...