asim-parser-filter-validator
Skill6.2k starsChanged 6 months agoMITView on GitHub
Validates ASIM parser filtering parameters by running filter tests against a Log Analytics workspace. Pure PowerShell using az CLI for authentication — no Python or Azure SDK packages required. Use this skill after creating or modifying an ASIM parser to verify that its filtering parameters work correctly.
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-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
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 59
When analyzing filter-validation failures, a failure can be ignored if it matches one of these inherent-limitation categories:
- Distinctive: line 65
When reviewing filter-validation output, analyze each failure message against these categories.
≈ “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
ASIM Parser Filter Validator
Validates that an ASIM parser's filtering parameters (e.g. disabled, starttime, endtime, srcipaddr_has_any_prefix, etc.) behave correctly by running queries against a Log Analytics workspace.
This skill is a pure PowerShell implementation that uses az CLI for authentication. No Python, Azure SDK packages, or YAML modules are required.
- PowerShell 7+
- Azure CLI (logged in via
az login)
What it tests
For every filtering parameter declared in the parser's KQL function signature:
| Parameter type | Tests performed |
disabled | disabled=true returns 0 rows; disabled=false returns rows |
datetime (starttime / endtime) | Filtering by the midpoint timestamp returns fewer rows than unfiltered |
Scalar (string, int) | Filtering by a real value returns exactly that value; filtering by a fictitious value returns 0 rows |
dynamic (*_has_any, *_has_all, *_has_any_prefix) | Filtering by one/two real values returns fewer rows; fictitious value returns 0 rows; substring / prefix variants tested where applicable |
Supported schemas
AgentEvent, AlertEvent, AssetEntity, AuditEvent, Authentication, DhcpEvent, Dns, FileEvent, NetworkSession, ProcessEvent, RegistryEvent, UserManagement, WebSession.
Inputs
| Input | Required | Description |
| Parser KQL path | Yes | Path to the ASIM parser .kql file to test |
| Schema name | Yes | ASIM schema name (e.g. Dns, Authentication, NetworkSession) |
| Workspace ID | Yes | Log Analytics workspace GUID to run queries against |
How to run
.\scripts\asimFilterTest.ps1 -ParserFile "{PathToFilterParserKQL}" -SchemaName "{SchemaName}" -WorkspaceId "{your-workspace-guid}"Prerequisites
- Azure CLI authenticated — run
az loginif not already logged in. If you get an authentication error, use theaz-cli-command-runnerskill to verify login status. - The workspace must contain data for the tables referenced by the parser.
Interpreting results
- Green — test passed.
- FAIL — the filtering parameter did not behave as expected. The failure message indicates which parameter failed and what was expected.
- Known partial validations — AuditEvent (
EventResult), Authentication (EventType), and Dns (EventType) have known single-failure scenarios that are automatically ignored.
Known acceptable failure reasons (can be ignored)
When analyzing filter-validation failures, a failure can be ignored if it matches one of these inherent-limitation categories:
- Documented schema known exception — The schema defines a known exception for a parameter (e.g. a multi-value test that cannot succeed because the value combinations do not co-exist in that schema's data). Check whether the ASIM schema documentation lists the parameter as a known exception.
- Constant or single-value field by design — The parser maps the filtered field to a single constant value, so multi-value or reduction-based filtering cannot reduce rows further. This is expected when the source provides only one possible value for that field.
- Insufficient distinct values in the test window — The 2-day query window does not contain enough distinct values for the field to exercise multi-value filtering. This is a data-availability limitation, not a parser bug.
When reviewing filter-validation output, analyze each failure message against these categories. If all other parameters pass and every failure maps to one of the reasons above, the parser's filtering implementation is considered correct.
Troubleshooting
| Symptom | Fix |
Failed to acquire access token via az CLI | Run az login |
No data in the provided workspace | Ensure the workspace has ingested data for the relevant tables within the last 2 days |
Schema: X - Not supported | The schema name is not in the supported list — update the $AllSchemasParameters hashtable in asimFilterTest.ps1 |
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.

