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!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

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