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.
71
87%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
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.
az login)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 |
AgentEvent, AlertEvent, AssetEntity, AuditEvent, Authentication, DhcpEvent, Dns, FileEvent, NetworkSession, ProcessEvent, RegistryEvent, UserManagement, WebSession.
| 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 |
.\scripts\asimFilterTest.ps1 -ParserFile "{PathToFilterParserKQL}" -SchemaName "{SchemaName}" -WorkspaceId "{your-workspace-guid}"az login if not already logged in. If you get an authentication error, use the az-cli-command-runner skill to verify login status.EventResult), Authentication (EventType), and Dns (EventType) have known single-failure scenarios that are automatically ignored.When analyzing filter-validation failures, a failure can be ignored if it matches one of these inherent-limitation categories:
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.
| 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 |
fd26ba7
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.