Infrastructure
Azure Monitor: diagnose a Log Analytics daily cap before raising the quota
A production runbook for proving a Log Analytics daily cap, finding the ingestion source that consumed it, restoring critical visibility and validating recovery before changing the quota.
Application, security and infrastructure logs stop arriving in the same Log Analytics workspace within a few minutes. Scheduled query alerts go quiet, dashboards flatten and the agents still look healthy. Raising the daily cap appears to be the fastest recovery, but it can immediately restart the ingestion spike that exhausted the quota and turn an observability incident into an uncontrolled cost incident.
The running case is a shared production workspace used by Application Insights, Azure resource diagnostic settings and Azure Monitor Agent. A verbose deployment doubled one application’s trace volume. The workspace reached its daily cap, so billable Analytics and Basic log collection stopped until the workspace reset. This runbook leads to one of four decisions: wait for the reset under compensating monitoring, temporarily raise the cap with a bounded budget, stop or filter the noisy source, or roll back the change that created the surge.
Freeze the evidence outside the affected workspace
Do not use a silent workspace as the only incident record. Preserve the cap configuration, reset time, last known complete interval, affected alert rules and alternate signals in a ticket or approved incident store.
incident: INC-OBS-742
workspace: law-platform-prod
detected_utc: 2026-10-21T05:47:00Z
last_complete_log_utc: 2026-10-21T05:39:00Z
affected_consumers:
- application alerts
- Microsoft Sentinel analytics rules
- platform dashboards
- deployment rollback queries
alternate_signals:
- Azure platform metrics
- Service Health
- resource-local health probes
- pipeline and application emergency logs
change_window:
release: orders-api-2026.10.21.3
started_utc: 2026-10-21T04:55:00Z
decision_owner: <monitoring-on-call>
budget_owner: <service-owner>
rollback_owner: <release-owner> Record which decisions can no longer rely on workspace data. A green log alert after ingestion stops is not proof of health; it is an unknown state.
Prove the cap at the control plane and in service events
First read the workspace capping state. OverQuota is direct control-plane evidence; ApproachingQuota indicates that the safeguard has not stopped ingestion yet. Keep the reported reset time because waiting may be safer than changing the limit during an unexplained surge.
set -euo pipefail
RG="rg-observability-prod"
WORKSPACE="law-platform-prod"
az monitor log-analytics workspace show --resource-group "$RG" --workspace-name "$WORKSPACE" --query '{id:id,location:location,sku:sku.name,capping:workspaceCapping}' -o json > workspace-capping.json
jq '{dailyQuotaGb: .capping.dailyQuotaGb,
dataIngestionStatus: .capping.dataIngestionStatus,
quotaNextResetTime: .capping.quotaNextResetTime}' workspace-capping.json Then query the service status records that arrived before the stop. Tenant and table evolution can expose _LogOperation or the legacy Operation table, so preserve whichever exists in the workspace instead of making the incident depend on one query name.
union isfuzzy=true
(
_LogOperation
| where TimeGenerated > ago(48h)
| where Category =~ "Ingestion" or Detail has_any ("OverQuota", "quota")
| project TimeGenerated, SourceTable="_LogOperation", Status="", Detail
),
(
Operation
| where TimeGenerated > ago(48h)
| where OperationCategory == "Data Collection Status"
| project TimeGenerated, SourceTable="Operation",
Status=OperationStatus, Detail=Detail
)
| order by TimeGenerated desc The portal banner is useful but not sufficient for a post-incident review. Keep the control-plane snapshot and service event together. Also remember that a cap is not exact: a high ingestion rate can overshoot the configured number before collection stops.
Separate a daily cap from another collection failure
Several failures look similar from a dashboard. Classify them before changing configuration.
DAILY CAP
workspaceCapping.dataIngestionStatus = OverQuota
many billable Analytics or Basic tables stop near the same time
collection is expected to resume at quotaNextResetTime
INGESTION RATE LIMIT
service events report volume-rate pressure or dropped data
the issue follows a burst rate, not the daily accumulation boundary
DCR OR AGENT FAILURE
only sources governed by one DCR, stream or agent group are missing
other workspace tables continue to advance
NETWORK OR AUTHENTICATION FAILURE
one ingestion path fails while unrelated sources remain current
sender, DCR or private-link diagnostics carry the error
QUERY OR ALERT FAILURE
raw rows are current but the query, schedule, dimension or action path fails Do not reinstall agents, redeploy DCRs or edit alerts when the workspace itself reports OverQuota. Those actions create churn without recovering the missing interval.
Find what consumed the ingestion budget
Use the last complete Usage records to rank billable volume by data type. Quantity is expressed in MB. Align the time window with the workspace reset boundary rather than assuming that the accounting day begins at midnight UTC.
let ResetBoundary = datetime(2026-10-20T14:00:00Z);
let CapObserved = datetime(2026-10-21T05:40:00Z);
Usage
| where TimeGenerated between (ResetBoundary .. CapObserved)
| where IsBillable == true
| summarize IngestedGb=sum(Quantity) / 1000.0 by DataType
| extend SharePct=round(100.0 * IngestedGb / toscalar(
Usage
| where TimeGenerated between (ResetBoundary .. CapObserved)
| where IsBillable == true
| summarize sum(Quantity) / 1000.0
), 1)
| order by IngestedGb desc Next, inspect the dominant table with its own stable dimensions: resource ID, application role, computer, container, namespace, category or DCR. Avoid a generic summarize count() across arbitrary tables because row size varies. The goal is to link the volume change to a source and a deployment or configuration event.
AppTraces
| where TimeGenerated between (datetime(2026-10-20T14:00:00Z) .. datetime(2026-10-21T05:40:00Z))
| summarize Rows=count(),
EstimatedGb=sum(_BilledSize) / 1024.0 / 1024.0 / 1024.0
by AppRoleName, bin(TimeGenerated, 15m)
| order by TimeGenerated asc, EstimatedGb desc Correlate the first rising bin with deployments, diagnostic-setting changes, DCR revisions, log-level switches or new resource onboarding. A top table is evidence of cost location, not yet root cause.
Restore visibility without reopening the surge
Choose the smallest action that restores critical evidence. A temporary cap increase needs an explicit ceiling, expiry and owner. Before applying it, stop the source that is clearly defective, roll back the verbose release, or route noncritical telemetry through a reviewed filter.
recovery_options:
wait_for_reset:
use_when:
- reset is near
- alternate health signals cover critical services
- missing interval is documented
temporary_cap_increase:
prerequisites:
- noisy source identified or isolated
- maximum additional GB approved
- expiry and restoration value recorded
- alert at 80 percent of the temporary limit enabled
source_containment:
preferred_actions:
- roll back verbose application release
- disable one noncritical diagnostic category
- apply a tested ingestion transformation
forbidden_shortcuts:
- stop all security collection
- delete the DCR during the incident
- permanently raise the cap without a baseline
rollback:
daily_quota_gb_previous: <value>
restore_at_utc: <timestamp>
owner: <name-or-team> If a temporary increase is approved, capture the previous value and make the change through the controlled infrastructure path. A direct CLI change is acceptable only when the incident process records and later reconciles the drift.
set -euo pipefail
RG="rg-observability-prod"
WORKSPACE="law-platform-prod"
TEMPORARY_CAP_GB="<approved-value>"
az monitor log-analytics workspace update --resource-group "$RG" --workspace-name "$WORKSPACE" --set workspaceCapping.dailyQuotaGb="$TEMPORARY_CAP_GB"
az monitor log-analytics workspace show --resource-group "$RG" --workspace-name "$WORKSPACE" --query 'workspaceCapping' -o json A daily cap is an emergency cost safeguard, not a steady-state filtering mechanism. Durable reduction belongs at the source or in a tested ingestion transformation, with explicit protection for security and incident evidence.
Validate recovery and account for the blind interval
Recovery is not proven by one new row. Verify the workspace state, service restart event, freshness of several independent tables and the return of scheduled alerts. Use a synthetic event where an approved source supports one.
union isfuzzy=true withsource=SourceTable
Heartbeat,
AzureActivity,
AppTraces,
SecurityEvent
| summarize LastRecord=max(TimeGenerated), RowsLast15m=countif(TimeGenerated > ago(15m))
by SourceTable
| extend LagMinutes=datetime_diff("minute", now(), LastRecord)
| order by LagMinutes desc Set table-specific expectations: AzureActivity may not behave like Heartbeat, and an idle application should not be forced to generate business traffic. Reconcile every alert evaluation that crossed the blind interval. For security or compliance workloads, document which detections could not run and whether source-side evidence can be recovered.
Close the incident only when:
dataIngestionStatushas returned to an enabled state;- critical tables are current through independent test signals;
- the noisy source is contained or its volume is understood;
- the temporary cap has an automatic or ticketed restoration step;
- alerts for approaching and reaching the cap are tested outside the affected workspace when possible;
- the missing interval and downstream detection impact are recorded.
Decide and roll back
Keep the temporary limit only long enough to restore and observe. Restore the previous cap after the defective source is corrected and a normal-volume window is visible. If the source cannot be bounded, roll back its release or collection change before increasing the limit again.
The durable decision is usually one of three: resize the cap from measured baseline and burst tolerance, reduce nonessential data before ingestion, or separate workloads whose cost and criticality require different failure domains. None of these decisions should erase the protective limit during an unexplained surge.
Conclusion
When a Log Analytics daily cap is reached, the immediate risk is not only cost. The team loses the logs and alerts required to operate production safely. The correct response proves OverQuota, measures which data consumed the budget, restores critical visibility under a bounded budget and explicitly accounts for the blind interval.
Raising the quota is justified only after the source, ceiling, expiry and rollback are known. Otherwise, wait for reset under compensating monitoring or contain the noisy source first. The outcome is a workspace that resumes collection without turning emergency visibility into unlimited ingestion.