Splunk Search

Including O365 UserAgent data in search

funkychickin
New Member

Hi all,

I'm having trouble getting O365 UserAgent data to show up in a search. Currently, my search looks like:

sourcetype="o365:management:activity" OR sourcetype="ms:o365:management" Workload=AzureActiveDirectory Operation=UserLoggedIn
| dedup user
| iplocation ActorIpAddress
| table user, City, Region,UserAgent, ActorIpAddress, _time 
| rename  ActorIpAddress AS IP  
| search NOT Region=Pennsylvania 
| sort-_time

I've tried a few different methods of getting UserAgent data into the table view but haven't had any luck. The data is in the Event log, I just can't seem to extract it. Any suggestions would be greatly appreciated!

Tags (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Debug SPL by starting with the smallest part of the query and adding bits until it breaks. The last thing added most likely is the problem. In your example, start with sourcetype="o365:management:activity" OR sourcetype="ms:o365:management" Workload=AzureActiveDirectory Operation=UserLoggedIn then add |dedup user and so on until you get no results. Make sure all expect fields are present with values in the expected form.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...