Designing Log Analytics Workspaces and Retention
This lesson explains how many workspaces to create, how to control access, and how to manage log cost.
Learning outcomes
After completing this lesson, you will be able to:
- Choose a workspace design from stated requirements.
- Compare workspace-context and resource-context access.
- Choose a table plan for a type of log.
- Identify ways to reduce ingestion cost.
How many workspaces
The most frequent logging design question is whether to use one Log Analytics workspace or several. Microsoft's guidance is to start with a single workspace and to add more only when a specific requirement justifies it. A single workspace is simpler to query, keeps related data together for correlation, and makes it easier to reach a commitment tier discount. Each additional workspace complicates queries and fragments data.
Several legitimate reasons do justify a split. The following criteria are the ones to look for in a scenario.
- Data sovereignty: data subject to residency rules must remain in a workspace in the required region.
- Tenants: a managed service provider or an organization with separate Microsoft Entra tenants may need separate workspaces, possibly viewed together through Azure Lighthouse.
- Billing: different cost centres can be billed separately when their data is in separate workspaces, though resource tags and cost allocation can often achieve the same outcome.
- Operational and security separation: a security operations team may keep Microsoft Sentinel data separate from operational logs, since Sentinel adds cost to all analytics data in its workspace.
- Retention: when tables need different retention, table-level settings usually suffice, so this is rarely a reason on its own.
The following diagram shows a workspace design for a company with EU data residency, twelve application teams and a large volume of rarely read debug logs, and how each group gets access.

Reasons to split workspaces
Controlling who can read logs
Teams often worry that a single workspace would expose one team's logs to another, but access control usually removes that concern. Log Analytics supports two access modes. In workspace-context access, a user with a role on the workspace can query all tables in it. In resource-context access, a user who has read access to a resource sees only the logs for that resource, even though those logs are in a shared workspace. Teams can therefore share a workspace while each sees only its own resources.
Table-level access control provides a finer alternative, restricting specific tables, such as security tables, to specific groups. Consequently, the need to separate teams is not in itself a reason to create more workspaces, and a recommendation should prefer a single workspace with resource-context access when the scenario calls for lower administrative effort.
Table plans and retention
Not all logs have the same value, and storing verbose logs at the highest tier wastes money. A Log Analytics table is therefore assigned a plan that sets its cost and its query capabilities.
Analytics plan
The Analytics plan is the default and supports the full power of KQL, alerts and interactive dashboards. It suits data that people query frequently and that alerts depend on. Analytics retention starts at 30 days, or 90 days for Microsoft Sentinel and Application Insights data, and it can be extended to two years for a prorated charge.
Basic plan
The Basic plan costs less to ingest and charges for the data each query scans. It suits verbose logs needed only occasionally for troubleshooting, such as debug output, where a team might search during an incident but would not build dashboards.
Auxiliary (Lake) plan
The Auxiliary plan, also described as the Lake plan, has the lowest ingestion cost and is intended for high-volume data kept largely for auditing, compliance and occasional investigation. Query capability is correspondingly limited, and queries are billed by the amount of data scanned.
Beyond interactive use, a table can keep data in long-term retention for a total of up to 12 years. Retained data stays in the workspace, and is reached by a search job or by restoring it for a period of intense investigation. This makes a separate archive unnecessary for many compliance requirements. The following comparison summarizes the plans.
Choose the table plan
Reducing what is ingested
Choosing a cheaper plan is one way to control cost, but the most effective way is to avoid ingesting data that nobody needs. A data collection rule can include a transformation, a KQL statement applied to data before it is stored. Transformations can filter out low-value records, remove columns, and mask sensitive values. Masking at ingestion is valuable when logs could contain personal data, because the value never reaches the workspace.
When log volume is predictable, commitment tiers give a discount compared with pay-as-you-go ingestion, in return for a committed daily volume. Where several workspaces in one region together ingest a high volume, a dedicated cluster allows them to share a commitment tier, and it also enables customer-managed keys for log encryption. Design choices should reflect the volume involved, because a dedicated cluster is justified only at substantial daily ingestion.
Controlling log cost
Where Microsoft Sentinel fits
Microsoft Sentinel is a cloud-native security information and event management (SIEM) service built on a Log Analytics workspace. It adds security analytics, threat detection rules, incident investigation and automated response to the data in that workspace. It is the recommendation when a scenario requires correlating security events across sources or responding to threats, while Azure Monitor alone is the recommendation for operational visibility.
Microsoft is moving Sentinel into the Microsoft Defender portal, and Sentinel will no longer be supported in the Azure portal after 31 March 2027. The service remains current; only the management experience changes.
Designing workspaces for a multinational
A company operates in the European Union and in the United States. European data must remain in the EU. Each of 12 application teams must see only logs for its own resources. Security analysts need to query all logs in both regions. Verbose debug logs amount to 300 GB per day and are read a few times a month. The solution must minimize cost and administrative effort. What should you recommend?
Data residency is a genuine reason to split, so the design uses one workspace in an EU region and one in a US region, and no more. Application team separation does not justify further splitting: resource-context access gives each team visibility of its own resources through the Azure roles it already holds.
The debug tables should use the Basic plan or the Auxiliary plan, so that rarely read data does not incur Analytics ingestion charges. Security analysts receive a reader role on both workspaces and use cross-workspace queries. Creating 12 workspaces would meet the access requirement but would raise administrative effort and prevent the volume from reaching a commitment tier, while a single global workspace would violate the residency rule.
Why does a requirement that each team sees only its own logs not usually justify more workspaces?
Show answer
Resource-context access limits a user to logs for resources the user can already read, even in a shared workspace.
Exam Tips
Remember for the exam
- Start with one workspace; split for residency, tenancy or another stated requirement.
- Resource-context access lets teams share a workspace and see only their own resources.
- Analytics for alerts and dashboards; Basic for occasional troubleshooting; Auxiliary for high-volume audit data.
- Long-term retention reaches a total of 12 years without leaving the workspace.
- A DCR transformation can filter or mask data before it is stored.