asim-parser-create-parser
Skill6.2k starsChanged 6 months agoMITView on GitHub
This starts the process of creating a new ASIM schema parser by generating the initial version of the parser based on the requirements gathered. Use this skill when you have gathered all necessary information for the new ASIM parser and are ready to create the initial version of the parser.
Trending
Quiet since July.thin dataabout the whole repository
Who's talking about Azure/Azure-Sentinel
- @github-trending.bsky.social“📦 Azure / Azure-Sentinel ⭐ 4,774 (+3) 🗒 Python Cloud-native SIEM for intelligent security analytics for …”Bluesky · Feb 12, 2025 · 2 likes
- pulumi/pulumi-cloud-requests“Logs automated export into Azure Storage Account and/or Log Analytics Workspace”GitHub · Aug 9, 2024 · 2 reactions
- octocat/Spoon-Knife“**Describe the bug**”GitHub · Jun 11, 2022 · 2 reactions
- redaliscbe/Azure-Sentinel“Feature 1”GitHub · Jul 8, 2026 · 1 reactions
- wortell/AZSentinel“Updat the Entity eum to include all the new types”GitHub · Dec 3, 2020 · 1 reactions
The biggest 5 of 5 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repository14 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- Tools/Microsoft-Sentinel-Classic-CLv1-Tables-Impact-Assessment/.github/copilot-instructions.mdCopilot instructions
- asim-parser-create-parameter-parserSkill
- asim-parser-creator-orchestratorSkill
- asim-parser-filter-validatorSkill
- asim-parser-github-pr-packagerSkill
- asim-parser-la-deployerSkill
- asim-parser-pr-reviewerSkill
- asim-parser-user-prompterSkill
- asim-parser-validatorSkill
- az-cli-command-runnerSkill
- log-analytics-workspace-queryerSkill
- run-solution-analyzerSkill
- update-solution-analyzerSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Before creating the initial version of a new ASIM parser, ensure you have gathered the following information:
- Distinctive: line 26
Use the target ASIM schema to build the ASIM parser.
- Distinctive: line 34
Do not use existing parsers as a reference.
- Distinctive: line 40
Use indexes so only relevant extents are scanned.
- Very specific: line 42
Use high-performance parsing operators (split, parse-kv, parse) and avoid regular expressions for string parsing.
- Very specific: line 44
Use project-rename for mapping, extend for calculated or normalized fields.
- Very specific: line 46
Do not use project-away to remove unmapped columns.
- Distinctive: line 58
Use values available on the current source row, constants, and query-local static lookup mappings while preserving event-record cardinality.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Prerequisites
Before creating the initial version of a new ASIM parser, ensure you have gathered the following information:
- The schema of the source data type.
- The source table name.
- The target ASIM schema.
Step 1: Data sampling
Query from the source table to get a sample of the data. Use the log-analytics-workspace-queryer skill for all KQL queries in this step.
- Determine the source table schema with this KQL query:
<tableName> | getschema. This will give you the column names and data types of the source data, which you can use to map to the ASIM schema. - Determine how many rows of data there are with this KQL query:
<tableName> | count. - From the number of rows available in the source table, run this KQL query:
<tableName> | take <minimum of rows found or 2000>. Take as many rows as possible to get a representative sample. Analyze the rows to identify unique values in important columns that will need to be mapped to the ASIM schema. This will help you understand the transformations needed in the parser.
Step 2: Build the initial version of the ASIM parser
Use the target ASIM schema to build the ASIM parser.
Determine what fields are Mandatory, Recommended, or Optional using this CSV: https://raw.githubusercontent.com/Azure/Azure-Sentinel/refs/heads/master/ASIM/dev/ASimTester/ASimTester.csv
For details about the different fields, use the Learn Microsoft documentation link to the schema. You do not need to map to every field in the ASIM schema, but you should try to map every column in the source data to an ASIM field.
For more information about developing parsers: https://learn.microsoft.com/en-us/azure/sentinel/normalization-develop-parsers
Do not use existing parsers as a reference. Each parser should be built from the ground up based on the source data and the target ASIM schema. This ensures parsers follow best practices and are optimized for performance.
Step 3: Parser development guidelines
Parsers are KQL functions that follow a clear flow: Filter → Parse → Map.
- Use indexes so only relevant extents are scanned.
- Filter early on native columns before parsing to improve performance.
- Use high-performance parsing operators (
split,parse-kv,parse) and avoid regular expressions for string parsing. - Normalize values with
iff,case, or query-local lookup tables rather than copying source values directly. - Use
project-renamefor mapping,extendfor calculated or normalized fields. - Try to map as many fields as possible, including optional ones. This increases usefulness and future-proofs the parser for schema changes.
- Do not use
project-awayto remove unmapped columns. Useprojectinstead, asproject-awaydoes not protect the parser from schema changes in the source data.
Prohibited patterns
ASIM parsers must read event records from one declared source table. Query-local static mappings created with datatable and applied with lookup are allowed because they do not read or correlate additional event records. Each lookup key must be unique so the mapping cannot fan out a source record. Do not use:
- Same-table enrichment — including a second read of the source table, a self-join, or a tabular subquery that correlates event records.
- Cross-table enrichment — including reading event records from another workspace table, a watchlist,
externaldata, or another external tabular source. - One-to-many fan-out — each source record must produce at most one normalized record. Do not expand one record into multiple normalized records; this indicates that the connector or source event shape must be corrected.
- Any
mv-*operator — includingmv-expandandmv-apply. - Event-record aggregation, reaggregation, correlation, or deduplication — including
summarize,distinct,arg_min,arg_max, or any other operation that combines source records or collapses expanded rows.
Use values available on the current source row, constants, and query-local static lookup mappings while preserving event-record cardinality. Prefer scalar expressions, scalar dynamic-value access, and direct parsing. If a field cannot be mapped without prohibited event enrichment, fan-out, mv-*, or event-record aggregation, leave it unmapped.
Parsing operators by performance ranking
| Rank | Operator | Description |
| 1 | split | Parse a string of values delimited by a delimiter |
| 2 | parse-kv | Extracts structured information from a string expression in key/value form |
| 3 | parse_csv | Parse a string of values formatted as a CSV line |
| 4 | parse, parse-where | Parse multiple values from an arbitrary string using a pattern |
| 5 | extract_all | Parse single values from an arbitrary string using a regular expression |
| 6 | extract | Extract a single value from an arbitrary string using a regular expression |
| 7 | parse_json (todynamic) | Parse values in a string formatted as JSON |
| 8 | parse_xml | Parse the values in a string formatted as XML |
Required columns
- Include the column
Typein the output of the ASIM parser. This column indicates the source table name. - Determine the placeholder entity fields applicable to the parser from the target schema and
Commonrows inASimTester.csv. Include every defined column whose name ends inEntityKeyorAdditionalIds, as well asAdditionalEntitieswhen it is defined for the schema. - Preserve the exact field names and casing from
ASimTester.csv. Entity fields are role-specific (for example,ActorUserEntityKey,SrcSystemEntityKey, andActorUserAdditionalIds); do not replace them with generic names such asentityKeyorAdditionalIds. Until mappings for these fields are defined, set every
*EntityKeyfield to an empty string and every*AdditionalIdsfield andAdditionalEntitiesto an empty dynamic array. For example:ActorUserEntityKey = "", SrcSystemEntityKey = "", ActorUserAdditionalIds = dynamic([]), AdditionalEntities = dynamic([])
Required parameters
Even though this is the parameter-less version, include the following parameters in the KQL function arguments:
disabled: bool = false— Allows the parser to be disabled. After calling the table name in the KQL query, include a filter| where not(disabled)to ensure the parser can be effectively disabled when needed.pack: bool = false(conditional) — Include this parameter only if the KQL function usesAdditionalFields. It allows the user to choose whether to include values inAdditionalFieldsor return it as an empty dynamic. This improves performance for users who do not need the extra information.
Step 4: Finalize and save
- Save the KQL query in a
.kqlfile. The file name must be prefixed withASim, followed by the schema name, event vendor, and event product. For example:ASimNetworkSessionCiscoASA.kql. This naming convention is a strict requirement. - Verify the KQL query runs without syntax errors by using the
log-analytics-workspace-queryerskill to execute it in the Log Analytics workspace. This step is crucial to validate that the parser is correctly formed and will function as expected when deployed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

