asim-parser-validator
Skill6.2k starsChanged 6 months agoMITView on GitHub
This skill will validate an ASIM by checking the schema output of the parser and also checking the data that the parser represents in the columns. Use this skill after you have created or updated an ASIM parser to validate that the parser is correctly mapping the source data to the ASIM schema.
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-create-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
- 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
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
All queries in this skill must be executed using the log-analytics-workspace-queryer skill.
- Very specific: line 33
Before fetching the YAML files, check if ASimSchemaTester and ASimDataTester are already available as saved searches in the workspace.
- Very specific: line 39
Look for entries with values ASimSchemaTester and ASimDataTester in the results.
- Very specific: line 47
Use the az-cli-command-runner skill to deploy each template:
- Distinctive: line 53
After successful deployment, the functions are available in the workspace.
- Distinctive: line 57
Run the schema validation query:
- Very specific: line 77
Run the data validation query.
- Distinctive: line 90
After making fixes based on the validation results, run the modified parser KQL query by itself to confirm it executes without syntax …
- Distinctive: line 96
If the query fails with a syntax error, fix the issue before returning results to the calling skill.
≈ “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
Validation functions
There are two validations that will need to be run against the ASIM parser:
- Schema validation: Checks that the output of the ASIM parser has the correct columns and data types matching the ASIM schema.
- Data validation: Checks that the values in the columns are correctly mapped and transformed — including enumerations, data type formatting (e.g., IP addresses), and value normalization.
Inputs
This skill requires the following:
- ASIM parser KQL — the full KQL query of the parser (or the file path to the
.kqlfile). - ASIM schema name — the target schema (e.g.,
NetworkSession,Authentication). - Workspace ID — the Log Analytics workspace GUID where the parser will be tested.
- Resource group and workspace name — needed to check for existing saved searches. If not already known, use the
az-cli-command-runnerskill to find them:
az monitor log-analytics workspace list --query "[?customerId=='<workspaceId>'].{name:name, resourceGroup:resourceGroup}" -o jsonAll queries in this skill must be executed using the log-analytics-workspace-queryer skill.
Step 0: Check if ASIM testers are already deployed
Before fetching the YAML files, check if ASimSchemaTester and ASimDataTester are already available as saved searches in the workspace. Use the az-cli-command-runner skill to run:
az monitor log-analytics workspace saved-search list --resource-group <rg> --workspace-name <name> --query "[].{functionAlias:functionAlias}" -o tableLook for entries with values ASimSchemaTester and ASimDataTester in the results.
- If both functions exist — skip the YAML fetch and inline function definition in Steps 1 and 2. Call the functions directly (see simplified queries below).
- If either function is missing — deploy the tester ARM templates to the workspace before proceeding:
- Download the ARM template JSON files:
Use the
az-cli-command-runnerskill to deploy each template:az deployment group create --resource-group <resourceGroup> --template-file <templateFilePath> --parameters Workspace=<workspaceName> WorkspaceRegion=<location>- After successful deployment, the functions are available in the workspace. Use the simplified direct call queries in Steps 1 and 2.
Step 1: Schema validation (ASimSchemaTester)
Run the schema validation query:
<ASIM parser KQL> | getschema | invoke ASimSchemaTester("<name of the ASIM schema>")Interpreting schema validation results
Results fall into 3 severity levels:
(0)Error — Must be fixed before proceeding. These indicate missing mandatory fields, type mismatches, or missing aliases.(1)Warning — Missing recommended fields. Attempt to fix, but do not brute-force a fix if the source data does not contain the information.(2)Info — Two sub-categories:- "extra unnormalized column" — The parser output contains columns not defined in the ASIM schema. Fix these by removing the extra columns from the parser output using
project. - All other Info messages (e.g., missing optional fields/aliases) — Can be safely ignored.
- "extra unnormalized column" — The parser output contains columns not defined in the ASIM schema. Fix these by removing the extra columns from the parser output using
Address all errors before proceeding to Step 2.
Step 2: Data validation (ASimDataTester)
Run the data validation query. The | limit 1000 restricts the number of rows inspected because the data tester evaluates individual row values, which is more expensive than schema-level checks.
<ASIM parser KQL> | limit 1000 | invoke ASimDataTester("<name of the ASIM schema>")Interpreting data validation results
- Fix errors related to enumerated fields — these indicate the parser is producing values that are not in the allowed set for that column.
- Fix errors related to data type formatting — these indicate values do not match the expected format (e.g., an IP address column contains non-IP values).
Step 3: Verify the parser runs without syntax errors
After making fixes based on the validation results, run the modified parser KQL query by itself to confirm it executes without syntax errors:
<ASIM parser KQL>If the query fails with a syntax error, fix the issue before returning results to the calling skill.
Outputs
This skill returns the following to the calling skill or orchestrator:
- Schema validation results — the list of Error, Warning, and Info messages from
ASimSchemaTester. - Data validation results — the list of Error, Warning, and Info messages from
ASimDataTester. - Summary — whether any Error-level
(0)results remain after both validations.
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.

