Azure Monitor Logs connector
Overview
Section titled “Overview”The built-in Azure Monitor Logs connector runs Kusto Query Language (KQL) queries against a Log Analytics workspace or an Azure resource’s logs. Connector availability can vary by environment and region.
Add a Logs action
Section titled “Add a Logs action”- Add an action in the workflow designer and select Azure Monitor Logs.
- Choose an action and select or create its connection.
- For workspace actions, provide the Log Analytics workspace ID (a GUID), not its Azure resource ID. For a resource-log query, provide the full Azure resource ID.
- For query actions, provide a KQL query and, optionally, a
timespanas an ISO 8601 duration such asPT12Hor a start/end range such as2024-01-01/2024-01-02. - Test the action and inspect the returned tables before using their rows in later steps.
Actions
Section titled “Actions”| Action | What it does |
|---|---|
| Run query on a Log Analytics workspace | Run a KQL query against a workspace. |
| Run query on resource logs | Run a KQL query against a resource’s logs using its Azure resource ID. |
| Get workspace schema | Discover workspace tables, columns, saved functions, and categories. |
Query results contain one or more tables. Each table’s rows are arrays of values in the same order as its columns array, rather than objects keyed by column name. For example, inspect the workspace schema, run a query, and pass the returned rows to a later action.
Triggers
Section titled “Triggers”This connector provides actions only. Start the workflow with a separate trigger, such as Recurrence, before querying logs.