Entra ID / Azure AD log schema

The schema for Entra ID / Azure AD logs is complex. When I am constructing queries in Log Search, I often find myself hunting for the JSON key that I need. Even if you export audit logs from Microsoft Entra ID Admin Center, the export file won’t contain the full JSON schema for the keys. My best bet is usually to find a log for similar event and look for the keys there, which is inefficient.

I’m wondering how others are handling this. If you are using Entra ID and you are building log queries for custom dashboards, detection rules, etc., is there a log schema reference that you are using? Or do you have other tricks?

Thanks in advance for any advice.

Unfortunately, we are in the same boat. However, we have six custom dashboards built with over 100 widgets combined and used a similar approach. We usually capture a test event and analyze its json structure and log source to generate a detection rule or monitoring widget against it.

1 Like

See our log schemas for all event types here Keys to Use in Your Queries | SIEM Documentation

David

1 Like

Hi David,

Thanks! This is definitely useful but doesn’t fully address the issue we are discussing. The Rapid7 schema is easy to understand, sure, but in the case of an Entra Cloud Service Admin Activity log, there can be a LOT of key/value pairs under the “source_json” key (which under your schema is defined as "The data that was received or collected by our collector or endpoint agent, formatted as JSON".

For instance, I’m looking at an ADD_USER_TO_GROUP log which has 48 key/value pairs under source_json, and I don’t have a reference for those. If I’m trying to reference one of those I have to poke around until I find the correct one.

Yes I agree, I only noticed after sharing its a high level schema. My approach for finding KVPs is as you mentioned, finding a relevant log with a loose search like where(add user,loose) and using the quick menu options by clicking on the key name and then add key or groupby to fetch the full nested path to what you are looking for.

David

1 Like

Hi David, thanks. The “loose” parameter is useful and something I haven’t played around with much, so that’s a good tip.

Hey,

Can anyone share a sample image of Entra ID logs looks like in Log search. Apparently, for me, I can’t see the Entra ID logs in Log search and I can’t query them.

Thanks,

Hi,

I’m sure I can provide something. Given how long the longs are, it might be easier if I knew what you are focusing on.

Thanks!

Just to be clear, the Entra ID (Identity provider) event source does not send logs to log search, similar to the LDAP event source, it is used to inform IDR about the users in your Entra Environment, and then use that information to attribute other events to those users. Such as sign in logs from the Azure event hub event source.

David

Right, apologies if I introduced any confusion. The logs that we’ve been discussing are the Azure logs, with Azure AD and Entra ID being much the same thing.

Ah yes I understand what you mean, I was more thinking along the lines that @rkotadiya may have been expecting the Entra ID event source to populate in log search which it is expected not to