Set a table's log data plan to Basic or Analytics

Azure Monitor Logs offers two log data plans that let you reduce log ingestion and retention costs and take advantage of Azure Monitor's advanced features and analytics capabilities based on your needs:

  • The default Analytics log data plan provides full analysis capabilities and makes log data available for queries, Azure Monitor features, such as alerts, and use by other services.
  • The Basic log data plan lets you save on the cost of ingesting and storing high-volume verbose logs in your Log Analytics workspace for debugging, troubleshooting, and auditing, but not for analytics and alerts.

This article describes Azure Monitor's log data plans and explains how to configure the log data plan of the tables in your Log Analytics workspace.

Compare the Basic and Analytics log data plans

The following table summarizes the Basic and Analytics log data plans.

Category Analytics Basic
Ingestion Regular ingestion cost. Reduced ingestion cost.
Log queries Full query capabilities
No extra cost.
Basic query capabilities.
Pay-per-use.
Retention Configure retention from 30 days to two years. Retention fixed at eight days.
When you change an existing table's plan to Basic logs, Azure archives data that's more than eight days old but still within the table's original retention period.
Alerts Supported. Not supported.

Note

The Basic log data plan isn't available for workspaces in legacy pricing tiers.

When should I use Basic logs?

By default, all tables in your Log Analytics workspace are Analytics tables, and they're available for query and alerts.

Configure a table for Basic logs if:

Note

Tables created with the Data Collector API don't support Basic logs.

Set a table's log data plan

You can switch a table's plan once a week.

To configure a table for Basic logs or Analytics logs in the Azure portal:

  1. From the Log Analytics workspaces menu, select Tables.

    The Tables screen lists all the tables in the workspace.

  2. Select the context menu for the table you want to configure and select Manage table.

    Screenshot that shows the Manage table button for one of the tables in a workspace.

  3. From the Table plan dropdown on the table configuration screen, select Basic or Analytics.

    The Table plan dropdown is enabled only for tables that support Basic logs.

    Screenshot that shows the Table plan dropdown on the table configuration screen.

  4. Select Save.

Next steps