Microsoft Azure Log Analytics
Microsoft Azure Log Analytics is a comprehensive cloud-based monitoring and analytics service within Azure Monitor that collects, analyzes, and acts on telemetry data from cloud and on-premises environments. It serves as a centralized log aggregation and analysis platform for organizations running workloads on Microsoft Azure and hybrid infrastructures.
| Category | Observability |
| Direction | Query source |
| Sign-in | Azure AD Application (Service Principal) |
| Query languages | STIX, KQL |
| Query templates | 4 |
Before you start
Huntbase signs in to Microsoft Azure Log Analytics with Azure AD Application (Service Principal). Create the credential in Microsoft Azure Log Analytics first, then keep it to hand for the Connect step.
- In the Azure portal, open Microsoft Entra ID and select App registrations › New registration. Enter a Name and select Register.
- On the app's overview page, copy the Application (client) ID.
- Select Certificates and Secrets, then on the Client secrets tab select New client secret. Enter a Description, select Add, and copy the secret Value straight away.
- Open your Log Analytics workspace and select Access control (IAM) › Add › Add role assignment.
- On the Role tab select Reader. On the Members tab choose User, group, or service principal, select your app, then select Review + assign.
- Copy the Workspace ID from the workspace overview.
Permissions:
Readeron the Log Analytics workspace (or on its resource group or subscription)
- The client secret value is shown only when you create it. If you leave the page without copying it, create a new secret.
- To register an app you need an Entra role such as Application Developer. To assign the role you need Owner or User Access Administrator on the workspace.
For the vendor's own instructions, see Microsoft guide to registering an app for the Log Analytics API.
Use a dedicated, read-only credential for Huntbase where the product allows it. Huntbase only needs to read.
Connect Microsoft Azure Log Analytics
- Go to Connections and click New connection, or click New connection on the Microsoft Azure Log Analytics product page.
- On Product, pick Microsoft Azure Log Analytics and choose the Owner.
- On Details, give the connection a Name and, optionally, a Description.
- On Connect, fill in the settings and credentials described below.
- On Verify, review the summary and click Create & check.
For everything else on the setup page — saving a draft, I'll do this later, and what each check result means — see Connections.
Settings
Where your Microsoft Azure Log Analytics lives:
| Field | Required | Notes |
|---|---|---|
| API Host | Yes | The Log Analytics API endpoint, api.loganalytics.io. Don't enter your workspace or portal URL. Defaults to api.loganalytics.io. |
| Port | Yes | 443. Defaults to 443. |
| Workspace ID | Yes | The workspace ID (a GUID) from the workspace overview, not the workspace name or resource ID. |
| Tables | No | To search specific Log Analytics workspace tables, select one or more tables (populated dynamically from the connected workspace) |
Advanced settings
These settings are under Advanced. You can usually leave them alone.
| Field | Required | Notes |
|---|---|---|
| Max Results | No | Advanced. Maximum rows fetched per run (connector default 10000). Lower for large result sets to keep responses fast and avoid timeouts. |
| Query Timeout (seconds) | No | Advanced. Per-request timeout for the Log Analytics API (connector default 30s). Raise for slow or heavily-loaded workspaces. |
| Self-Signed Cert (PEM) | No | Provide a self-signed or CA-signed certificate to securely communicate with the data source. |
Credentials
The only Method is Azure AD Application (Service Principal). Enter a Credential label (for example Production), then fill in:
| Field | Required | Notes |
|---|---|---|
| Tenant ID | Yes | The ID (a GUID) of the Microsoft Entra tenant where you registered the app. Secret — not shown again after you save it. |
| Client ID | Yes | Client ID of Azure Active directory Application with access to the data source. Secret — not shown again after you save it. |
| Client Secret | Yes | The client secret Value you copied when you created the secret. Secret — not shown again after you save it. |
Query it
Once connected, Microsoft Azure Log Analytics can serve these languages in a query tab, and Scout can use it when you ask in Auto:
| Language | Use it for |
|---|---|
| STIX | STIX patterns for indicator sweeps, translated into the product's native search. |
| KQL | Native Kusto queries against the workspace, sent as written. |
Example: STIX
Suspicious URL or IP across security tables — Hunt for a suspicious URL or IP using a STIX pattern.
[url:value = '{{url}}'] OR [ipv4-addr:value = '{{ip}}']
Example: KQL
Top talkers by destination — Native KQL aggregation returning the busiest destinations first.
SecurityEvent
| where TimeGenerated > ago(24h)
| summarize events = count() by DestinationIp = tostring(DestinationIp)
| sort by events desc
| take 20
Microsoft Azure Log Analytics ships with 4 query templates. Find them in Library › Queries — see Query templates.
Next steps
- Connections — health, credentials and settings after you connect
- Query languages — syntax, parameters and time ranges
- Chatting with Scout — ask questions without writing a query
- All integrations — the rest of the catalog