DEV Community

Emmanuel Cobham
Emmanuel Cobham

Posted on

Create a Log Analytics workspace

Create a Log Analytics workspace

This article outlines detailed steps on how to create a log analytics workspace

One of Azure Monitor's features, Azure Monitor Logs, gathers and arranges performance and log information from resources under observation. For log data from Azure Monitor and other Azure services, a Log Analytics workspace is a special setting. Although each workspace may incorporate data from several services, each workspace has its own data store and settings.

Create a Log Analytics workspace

1) In the Azure Portal Search Bar, enter Log Analytics and select Log Analytics workspaces from the list of results

Log Analytics workspaces

2) On the Log Analytics workspaces page, choose Create

Create

3) On the Basics page of the Create Log Analytics workspace wizard, provide the following information and choose Review + Create

Create Log Analytics workspace wizard

rgalpha

name and location

review and create

4) Review the information and choose Create

Create

Configure Log Analytics data retention and archive policies

1) In the Azure Portal Search Bar, enter Log Analytics and select Log Analytics workspaces from the list of results

select Log Analytics workspaces

2) On the Log Analytics workspaces page, choose LogAnalytics1

choose LogAnalytics1

3) On the Log Analytics workspace page for LogAnalytics1, choose Usage and estimated costs

choose Usage and estimated costs

4) Select Data Retention and set the slider to 60 days. Choose OK

Data Retention

5) On the Log Analytics workspace page for LogAnalytics1, choose Usage and estimated costs

choose Usage and estimated costs

6) Select Daily cap. Choose On. Set the daily cap to 10 GB and choose OK

Daily cap

Enable access to a Log Analytics workspace

1) In the Azure Portal Search Bar, enter Log Analytics and select Log Analytics workspaces from the list of results

Log Analytics workspaces

2) On the Log Analytics workspaces page, choose LogAnalytics1

choose LogAnalytics1

3) Select Access control (IAM)

Access control (IAM)

4) Choose Add and then choose Add role assignment

Add role assignment

5) On the list of roles, select Log Analytics Reader and choose Next

Log Analytics Reader

6) On the Members page, choose Select Members and choose the App Log Examiners security group. Choose Select

Select Members

7) On the Members space, choose Review + Assign

Review + Assign

Top comments (0)