Detection content written against one log source's field names breaks, or silently misses events, the moment a second source of the same kind is added. Microsoft Sentinel's Advanced Security Information Model (ASIM) addresses this with normalised schemas, KQL parser functions that map each source to those schemas at query time, and native tables that store already-normalised events at ingest time. This guide explains how the three pieces fit together, how to call parsers efficiently with filtering parameters, how to add and test custom parsers, and when ingest-time normalisation is worth the extra work. It is for Sentinel engineers and detection content authors who already know KQL and want analytics that survive source changes.
This is an independent guide from NHI Mgmt Group, based on Microsoft's public documentation as of November 2026. It is not sponsored or reviewed by Microsoft. Product features change, so confirm settings against Microsoft's current documentation.
Key takeaways
- Query the unifying parser, not the table. Functions such as
_Im_Authenticationand_Im_NetworkSessioncombine every supported source, including native normalised tables, behind one field set. - Always pass filtering parameters. Parameters such as
starttime,endtimeandsrcipaddr_has_any_prefixfilter before parsing, which Microsoft documents as the main performance lever. - Ingest-time normalisation complements query-time parsing. DCR transformations can write to ten native
ASim*Logstables for speed, but queries should still go through the unifying parser. - Custom sources plug in through custom unifying parsers. Built-in unifying parsers automatically pick up
Im_<Schema>Customfunctions, and a watchlist can exclude built-in parsers you do not want. - Test parsers with the shipped tools.
ASimSchemaTesterchecks fields and types;ASimDataTesterchecks values, and contributed parsers must pass with no errors.
What ASIM is
Microsoft describes ASIM as a normalisation layer between the sources Sentinel ingests and the people and content that use the data, following the robustness principle "be strict in what you send, be flexible in what you accept". It aligns with the Open Source Security Events Metadata (OSSEM) common information model. ASIM has four components:
- Normalised schemas: standard event types with defined field names, types and value formats.
- Query-time parsers: KQL functions that map existing tables, such as
CommonSecurityLog,Syslogor custom tables, to a schema without changing stored data. - Ingest-time normalisation: data collection rule (DCR) transformations that write events directly into native normalised tables.
- Content: analytics rules, hunting queries, workbooks and solutions that use the parsers and therefore work for any supported source, including sources added later.
ASIM sits inside the Log Analytics workspace, so it is independent of which portal you use. Sentinel management is moving to the Microsoft Defender portal; plan that change separately using the Microsoft Sentinel Move to the Defender Portal. For the product as a whole, see the Microsoft Sentinel Guide.
ASIM schemas
Microsoft's schema reference, updated September 2026, lists thirteen event schemas and one entity schema, all at version 1.0.0 and generally available. The "test name" is the value used with the testing tools and in the EventSchema field.
| Schema | Test name | Native ingest-time table | Typical sources |
|---|---|---|---|
| Agent Event | AgentEvent | None listed | Agent lifecycle and health events |
| Alert Event | AlertEvent | None listed | Security alerts from products |
| Audit Event | AuditEvent | ASimAuditEventLogs | Configuration and administrative changes |
| Authentication Event | Authentication | ASimAuthenticationEventLogs | Sign-ins, logons, token use |
| DHCP Activity | DhcpEvent | ASimDhcpEventLogs | DHCP servers |
| DNS Activity | Dns | ASimDnsActivityLogs | DNS servers and resolvers |
| Email Event | EmailEvent | None listed | Mail gateways and services |
| File Activity | FileEvent | ASimFileEventLogs | Endpoint and storage file operations |
| Network Session | NetworkSession | ASimNetworkSessionLogs | Firewalls, flow logs, network sensors |
| Process Event | ProcessEvent | ASimProcessEventLogs | Process creation and termination |
| Registry Event | RegistryEvent | ASimRegistryEventLogs | Windows registry changes |
| User Management | UserManagement | ASimUserManagementActivityLogs | Account and group changes |
| Web Session | WebSession | ASimWebSessionLogs | Proxies, web servers, WAFs |
| Asset Entity (entity schema) | AssetEntity | None listed | Asset inventories and change feeds |
Each schema classifies fields as mandatory, recommended, optional, conditional (mandatory when the field it describes is set, such as DvcIdType when DvcId is populated) or alias. Logical types fix formats across sources: IP addresses in a single field for IPv4 and IPv6, MAC addresses in colon-hexadecimal, hashes as fixed-length hex strings, countries in ISO 3166-1. Entity prefixes such as Actor, Target, Src and ActingProcess distinguish multiple entities of the same type in one event. Microsoft advises using the underlying field rather than the alias (for example DvcHostname rather than Dvc) in reusable content such as analytics rules, for performance and readability.
For identity work, the Authentication and User Management schemas matter most: TargetUsername, TargetUserType and TargetUserIdType let one rule cover human and service accounts across directories and clouds. See Detection Engineering for Non-Human Identities Guide for rule ideas that benefit from this.
Query-time parsers
Parsers come in two deployments and two levels. Built-in parsers exist in every Sentinel workspace; workspace-deployed parsers are installed from the Azure-Sentinel GitHub repository with an ARM template and use different names, so both can coexist. Microsoft recommends the built-in set for content and the workspace-deployed set for parser development or modified versions.
| Parser type | Built-in name pattern | Workspace-deployed equivalent | Use |
|---|---|---|---|
| Unifying, filtering | _Im_<Schema> (e.g. _Im_NetworkSession) | im<Schema> (e.g. imNetworkSession) | Default for all queries and analytics |
| Source-specific | _Im_<Schema>_<Source>V<version> | vim<Schema><Source> | Called by the unifying parser; usable alone for testing |
| Unifying, parameter-less (legacy) | _ASim_<Schema> | ASim<Schema> | Backward compatibility only; no filtering parameters |
| Custom unifying | Not applicable | Im_<Schema>Custom | Where your own source-specific parsers are added |
Filtering parameters
Each schema defines a standard set of optional filtering parameters. Passing them lets each source-specific parser drop irrelevant rows before parsing, which is cheaper than filtering on normalised fields afterwards. The sets below are taken from the published parser definitions in the Azure-Sentinel repository.
| Unifying parser | Filtering parameters |
|---|---|
_Im_Authentication | starttime, endtime, username_has_any, targetappname_has_any, srcipaddr_has_any_prefix, srchostname_has_any, eventtype_in, eventresultdetails_in, eventresult, pack |
_Im_Dns | starttime, endtime, srcipaddr, domain_has_any, responsecodename, response_has_ipv4, response_has_any_prefix, eventtype, pack |
_Im_NetworkSession | starttime, endtime, srcipaddr_has_any_prefix, dstipaddr_has_any_prefix, ipaddr_has_any_prefix, dstportnumber, hostname_has_any, dvcaction, eventresult, pack |
Setting pack=true places non-normalised source fields into the dynamic AdditionalFields column; the parsers list notes which source parsers support it. Microsoft's own example contrasts the two styles:
1 Sample only, based on the public documentation cited. Assess it independently against the current official documentation, test outside production and back up first.
// Recommended: filter inside the parser
_Im_Dns(starttime=ago(1d), responsecodename='NXDOMAIN')
| summarize count() by SrcIpAddr, bin(TimeGenerated, 15m)
// Slower: parse everything, then filter
_Im_Dns
| where TimeGenerated > ago(1d)
| where ResponseCodeName =~ "NXDOMAIN"
| summarize count() by SrcIpAddr, bin(TimeGenerated, 15m)Ingest-time normalisation
Ingest-time normalisation transforms events into a schema as they arrive and stores them in a native table. It is built with a DCR whose transformation KQL does the mapping. Which DCR you edit depends on how the data arrives:
| Ingestion path | DCR type | Transformation |
|---|---|---|
| Custom data through the Logs Ingestion API | Standard DCR | Required, part of the DCR that defines the data model |
| Syslog, CommonSecurityLog, WindowsEvent, SecurityEvent through Azure Monitor Agent | Standard DCR | Optional, added to the collection DCR |
| Most other built-in sources | Workspace transformation DCR | Optional, attached to the workspace |
DCR KQL is a subset of normal KQL that runs per record. Supported tabular operators include extend, project, project-away, project-rename, where, parse (up to 10 columns per statement) and parse-kv; summarize is not supported, and source is the only input table. Transformation-only functions parse_cef_dictionary and geo_location are available, the latter sparingly because it adds latency. Microsoft notes that query-time parsers must be modified before reuse in a DCR, and that DCR changes can take up to 60 minutes to apply. The Sentinel ingestion-time transformation article was marked preview when checked in November 2026.
Native tables are included by default in the unifying parsers through stub parsers, lightweight query-time functions that read the native table, add aliases (which are not stored, to save space), set EventSchema, support the filtering parameters and allow query-time fixes for values missed at ingest. Stub parsers deliberately do not add EventProduct, EventVendor or EventSchemaVersion, so your transformation must write them. If you normalise into a custom table instead, write your own stub parser, starting from Microsoft's DNS native stub parsers (ASimDnsNative and vimDnsNative), and add it to the custom unifying parser.
Choosing query-time or ingest-time
| Factor | Query-time parsing | Ingest-time normalisation |
|---|---|---|
| Query speed on large volumes | Slower; mitigated by filtering parameters | Faster: data is already normalised |
| Fixing a mapping error | Fix applies to all historical data | Only new data is corrected; stub parser can patch at query time |
| Storage | No duplicate copy: normalised data is a view | Duplicate storage if raw events are kept as well |
| Development effort | Easier to build and test against existing data | Harder: DCR KQL subset, delayed deployment |
| Raw fidelity | Original format preserved | Original lost unless kept separately |
A practical rule: start every source on query-time parsers, measure, and move only high-volume sources whose analytics are slow (often network session, DNS and web session data) to ingest-time tables.
Writing source-agnostic analytics
- Start from the unifying parser: use
_Im_<Schema>with every relevant filtering parameter, and pass the rule's lookback asstarttime. - Use normalised values: compare against enumerated values such as
EventResult == "Failure"rather than source-specific codes. - Prefer underlying fields over aliases: for example
TargetUsernamerather thanUserin rules and workbooks. - Handle missing recommended fields: recommended and optional fields may be empty for some sources, so avoid logic that silently drops those rows.
- Group by source when tuning:
EventProductandEventVendorshow which source produced a match, useful for false-positive analysis. - Store rules as code: parser and rule versions belong together in source control. See the Detection as Code Guide and the KQL for Threat Hunting Guide.
Custom parsers and testing
Microsoft's development process has eight steps: collect sample logs, identify the schemas, map fields, write both a filtering and a parameter-less parser per schema, test, deploy, add the parser to the custom unifying parser, and optionally contribute it upstream. A parser has three parts, Filter, Parse and Prepare fields, and must stay record-local: no joins, watchlists, externaldata, summarize, distinct, mv-expand or mv-apply, and no time filter of its own. Prefilter on physical columns with ==, has or startswith rather than contains or regex, and set EventCount, EventProduct, EventVendor, EventSchemaVersion and EventSchema on every record.
| Tool or mechanism | Invocation | What it catches |
|---|---|---|
ASimSchemaTester | <parser> | getschema | invoke ASimSchemaTester('<schema>') | Errors: missing mandatory fields or aliases, type mismatches. Info: missing recommended fields, extra fields |
ASimDataTester | <parser> | limit <X> | invoke ASimDataTester('<schema>') | Invalid logical-type values, empty mandatory fields, with percentage of affected records |
| Custom unifying parser | Im_<Schema>Custom with union isfuzzy=true | Adds your parsers to every built-in unifying parser; disabled=true switches one off |
"ASim Disabled Parsers" watchlist (alias ASimDisabledParsers) | CallerContext and SourceSpecificParser set to Exclude<parser>, or Any | Excludes built-in source parsers, or pins versions by excluding auto-updated ones |
ASimDataTester is resource intensive, so raise the limit only as far as it runs without timing out. The percentage it reports is diagnostic: Microsoft notes that a field empty in 90% of records suggests a general parsing fault, while 25% may indicate an unparsed event variant. For deployment at scale, write parsers in the ASIM YAML template and convert them with the YAML-to-ARM converter; contributions to the repository must pass all tests with no errors and document remaining warnings in an Exceptions section.
Parsers for Syslog-style sources use the Sources_by_SourceType watchlist to identify which hosts send which product. Keep it maintained: a missing entry means events silently fall out of the unifying parser.
Performance and cost considerations
- Filter early: filtering parameters are the single biggest performance control; review analytics that call unifying parsers without them.
- Exclude unused parsers: every source-specific parser in a
unionadds work. Use the watchlist to exclude parsers for sources you do not ingest. - Do not pack by default: leave
packfalse in analytics unless you needAdditionalFields. - Watch duplicate storage: ingest-time normalisation alongside retained raw tables stores events twice; decide per source whether the raw copy is needed, and for how long.
- Keep DCRs lean: limit
geo_locationcalls and complex parsing in transformations, and test changes allowing for the propagation delay. - Treat parsers as privileged code: anyone who can edit workspace functions or the exclusion watchlist can blind analytics. Restrict and audit those rights. See Securing the SIEM itself.
Metrics to track
- Share of analytics rules that use
_Im_parsers rather than raw tables. - Share of ingested security tables covered by an ASIM parser or native table.
- Median and 95th percentile run time of ASIM-based scheduled rules.
- Count of
ASimSchemaTestererrors across custom parsers (target zero). - Percentage of events with empty mandatory fields per source, from
ASimDataTester.
Common failure patterns
- Calling the legacy
_ASim_parsers in new content, which cannot take filtering parameters. - Writing analytics against native
ASim*Logstables directly, which misses sources still parsed at query time. - Forgetting
EventProductandEventVendorin DCR transformations, because stub parsers do not add them. - Custom parsers left out of
Im_<Schema>Custom, so built-in content never sees the source. - Unmaintained
Sources_by_SourceTypeor exclusion watchlist entries silently removing a source.
Practitioner checklist
- Inventory security tables and map each to an ASIM schema and parser, built-in or custom.
- Convert analytics to
_Im_<Schema>calls with filtering parameters and the rule lookback asstarttime. - Run
ASimSchemaTesterandASimDataTesteron every custom parser before deployment. - Register custom parsers in
Im_<Schema>Customand exclude unused built-in parsers through the watchlist. - Move only measured high-volume sources to ingest-time tables, writing
EventProduct,EventVendorandEventSchemaVersion. - Keep parsers, DCR transformations and rules in source control with review.
- Restrict who can edit workspace functions, DCRs and ASIM watchlists, and audit changes.
- Recheck parser and portal behaviour as part of the Defender portal transition.
Standards and references
- Microsoft Learn: Normalization and the Advanced Security Information Model (ASIM)
- Microsoft Learn: ASIM schemas
- Microsoft Learn: Use ASIM parsers
- Microsoft Learn: Manage ASIM parsers
- Microsoft Learn: Ingest time normalization
- Microsoft Learn: Develop ASIM parsers
- Microsoft Learn: Structure of transformations in Azure Monitor
- Microsoft: Azure-Sentinel ASIM parsers repository
Related NHI Mgmt Group resources: Microsoft Sentinel Guide · Microsoft Sentinel Move to the Defender Portal · Detection Engineering Guide · KQL for Threat Hunting Guide