Join our Newsletter — 33% off our NHI Course
Home› Guides› Microsoft Sentinel ASIM Guide: Schemas, Parsers and Ingest-Time…
Guide SOC & Detection Engineering

Microsoft Sentinel ASIM Guide: Schemas, Parsers and Ingest-Time Normalisation

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 12 min read
On this page

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_Authentication and _Im_NetworkSession combine every supported source, including native normalised tables, behind one field set.
  • Always pass filtering parameters. Parameters such as starttime, endtime and srcipaddr_has_any_prefix filter 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*Logs tables 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>Custom functions, and a watchlist can exclude built-in parsers you do not want.
  • Test parsers with the shipped tools. ASimSchemaTester checks fields and types; ASimDataTester checks 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, Syslog or 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.

SchemaTest nameNative ingest-time tableTypical sources
Agent EventAgentEventNone listedAgent lifecycle and health events
Alert EventAlertEventNone listedSecurity alerts from products
Audit EventAuditEventASimAuditEventLogsConfiguration and administrative changes
Authentication EventAuthenticationASimAuthenticationEventLogsSign-ins, logons, token use
DHCP ActivityDhcpEventASimDhcpEventLogsDHCP servers
DNS ActivityDnsASimDnsActivityLogsDNS servers and resolvers
Email EventEmailEventNone listedMail gateways and services
File ActivityFileEventASimFileEventLogsEndpoint and storage file operations
Network SessionNetworkSessionASimNetworkSessionLogsFirewalls, flow logs, network sensors
Process EventProcessEventASimProcessEventLogsProcess creation and termination
Registry EventRegistryEventASimRegistryEventLogsWindows registry changes
User ManagementUserManagementASimUserManagementActivityLogsAccount and group changes
Web SessionWebSessionASimWebSessionLogsProxies, web servers, WAFs
Asset Entity (entity schema)AssetEntityNone listedAsset 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 typeBuilt-in name patternWorkspace-deployed equivalentUse
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 unifyingNot applicableIm_<Schema>CustomWhere 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 parserFiltering parameters
_Im_Authenticationstarttime, endtime, username_has_any, targetappname_has_any, srcipaddr_has_any_prefix, srchostname_has_any, eventtype_in, eventresultdetails_in, eventresult, pack
_Im_Dnsstarttime, endtime, srcipaddr, domain_has_any, responsecodename, response_has_ipv4, response_has_any_prefix, eventtype, pack
_Im_NetworkSessionstarttime, 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.

Sample 1
// 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 pathDCR typeTransformation
Custom data through the Logs Ingestion APIStandard DCRRequired, part of the DCR that defines the data model
Syslog, CommonSecurityLog, WindowsEvent, SecurityEvent through Azure Monitor AgentStandard DCROptional, added to the collection DCR
Most other built-in sourcesWorkspace transformation DCROptional, 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

FactorQuery-time parsingIngest-time normalisation
Query speed on large volumesSlower; mitigated by filtering parametersFaster: data is already normalised
Fixing a mapping errorFix applies to all historical dataOnly new data is corrected; stub parser can patch at query time
StorageNo duplicate copy: normalised data is a viewDuplicate storage if raw events are kept as well
Development effortEasier to build and test against existing dataHarder: DCR KQL subset, delayed deployment
Raw fidelityOriginal format preservedOriginal 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

  1. Start from the unifying parser: use _Im_<Schema> with every relevant filtering parameter, and pass the rule's lookback as starttime.
  2. Use normalised values: compare against enumerated values such as EventResult == "Failure" rather than source-specific codes.
  3. Prefer underlying fields over aliases: for example TargetUsername rather than User in rules and workbooks.
  4. Handle missing recommended fields: recommended and optional fields may be empty for some sources, so avoid logic that silently drops those rows.
  5. Group by source when tuning: EventProduct and EventVendor show which source produced a match, useful for false-positive analysis.
  6. 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 mechanismInvocationWhat 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 parserIm_<Schema>Custom with union isfuzzy=trueAdds 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 AnyExcludes 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 union adds work. Use the watchlist to exclude parsers for sources you do not ingest.
  • Do not pack by default: leave pack false in analytics unless you need AdditionalFields.
  • 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_location calls 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 ASimSchemaTester errors 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*Logs tables directly, which misses sources still parsed at query time.
  • Forgetting EventProduct and EventVendor in 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_SourceType or 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 as starttime.
  • Run ASimSchemaTester and ASimDataTester on every custom parser before deployment.
  • Register custom parsers in Im_<Schema>Custom and exclude unused built-in parsers through the watchlist.
  • Move only measured high-volume sources to ingest-time tables, writing EventProduct, EventVendor and EventSchemaVersion.
  • 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

Related NHI Mgmt Group resources: Microsoft Sentinel Guide · Microsoft Sentinel Move to the Defender Portal · Detection Engineering Guide · KQL for Threat Hunting Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.