Create an Azure Log Analytics workspace and add a Virtual Machine | Cloud Build (2024)

Reading Time: 4 minutes

This blog post will go through the process of creating an Azure Log Analytics workspace and connecting a test azure virtual server to the Log Analytics workspace. We will then setup the work space to collect System event logs from the test Azure VM.

1) Login to the Azure Portal

2) Search and select Log Analytics workspaces

3) Click Create Log Analytics workspace

4) Configure:
– Give your new Log Analytics workspace a name
– Select your subscription
– Select a Resource Group
– Select Location
– Pricing Tier (Only one pricing Tier exists as of the year 2018). At the time of writing this blog post, the one available Tier was named Pay-as-you-go (Per GB 2018)

Create an Azure Log Analytics workspace and add a Virtual Machine | Cloud Build (1)

5) Click OK

6) Now that you have created your Log Analytics workspace, let’s join a VM to this new work space

Note that adding servers to the work space will automatically deploy a monitoring extension (agent) to the server

7) Click your new Log Analytics workspace

8) From the left pane under Workspace Data Sources, click Virtual Machines. As you can see from the screenshot, you can also connect other resources to your workspace

Create an Azure Log Analytics workspace and add a Virtual Machine | Cloud Build (2)

Note: Workspaces work across different regions, so you could add servers to a workspace no matter what region they are located in.

9) As you can see from the right pane, I have two virtual servers and the Log Analytics Connection is showing as not connected

Create an Azure Log Analytics workspace and add a Virtual Machine | Cloud Build (3)

10) Click a VM you wish to add to this work space (Ensure the VM is powered on)

11) As you can see from the below screen shot, the server is not connected to the work space, but we have the option to connect.

Create an Azure Log Analytics workspace and add a Virtual Machine | Cloud Build (4)

12) Click Connect

13) Wait for the virtual server to connect (A monitoring agent (Extension) is being deployed to the virtual server)

14) Now that the machine is connected to your workspace, the status is displayed as below. If you wish to disconnect, click disconnect.

Create an Azure Log Analytics workspace and add a Virtual Machine | Cloud Build (5)

Note: Now that the extension agent is deployed, you will find that the monitoring agent has been deployed to the VM. Locate the VM under virtual machines and click extensions from the left pane. The screenshot below shows the MicrosoftMonitoringAgent has been provisioned successfully.

Create an Azure Log Analytics workspace and add a Virtual Machine | Cloud Build (6)

15) If we go back to our workspace, we’ll find the server is now showing as a connection of this workspace along with a green tick.

Create an Azure Log Analytics workspace and add a Virtual Machine | Cloud Build (7)

16) Now, let’s enable logging for this workspace. Note that these logs will apply for all resources attached to this resource, so if you have different logging requirements for different resources, create different work spaces. You could also complete this step straight after the Logs Analytics Workspace has been deployed.

17) Click on your Log Analytics Workspace, and click Advanced Settings from the left pane.

Create an Azure Log Analytics workspace and add a Virtual Machine | Cloud Build (8)

18) The screen below will appear

Note: If you wish to connect physical servers to your Log Analytics Workspace, you can do so by downloading the required agent.

Create an Azure Log Analytics workspace and add a Virtual Machine | Cloud Build (9)

19) Click Data

20) A few different options appear which may be of interest to you. For this demo let’s click Windows Event Logs. Click the plus icon (blue box) to the right of the screen

Create an Azure Log Analytics workspace and add a Virtual Machine | Cloud Build (10)

21) For this demo, we will monitor the system logs, type system into the text box, select system and click the plus icon located within the blue box.

Create an Azure Log Analytics workspace and add a Virtual Machine | Cloud Build (11)

22) All logs are selected by default. You can select the logs as per your requirements.

Create an Azure Log Analytics workspace and add a Virtual Machine | Cloud Build (12)

23) Click Save and OK

Hope this helps 🙂

Create an Azure Log Analytics workspace and add a Virtual Machine | Cloud Build (2024)

FAQs

How to create a log analytics workspace in Azure? ›

Create the workspace
  1. Sign in to the Azure portal as at least a Security Administrator and Log Analytics Contributor.
  2. Browse to Log Analytics workspaces.
  3. Select Create.
  4. On the Create Log Analytics workspace page, perform the following steps: ...
  5. Select Review + Create.
  6. Select Create and wait for the deployment.
Feb 9, 2024

How to add VM to log analytics workspace in Azure? ›

Sign into the Azure portal. Select Browse on the left side of the portal, and then go to Log Analytics (OMS) and select it. In your list of Log Analytics workspaces, select the one that you want to use with the Azure VM. Under Log analytics management, select Virtual machines.

What is the solution in Azure Log Analytics Workspace? ›

Solutions in Log Analytics Workspace: "Solutions" in Log Analytics Workspace refers to pre-packaged solutions or management packs that can be deployed to collect, analyze, and act on data from various sources.

How to create an Azure workspace? ›

Create the workspace
  1. Sign in to Azure Machine Learning studio.
  2. Select Create workspace.
  3. Provide the following information to configure your new workspace: Field. ...
  4. If you did not select a hub, provide the advanced information. If you selected a hub, these values are taken from the hub. ...
  5. Select Create to create the workspace.
Apr 30, 2024

How to create logs in Azure? ›

Go to the Log Analytics workspaces menu in the Azure portal and select Tables. The tables in the workspace will appear. Select Create > New custom log (DCR based). Specify a name for the table.

How do I find my Log Analytics workspace? ›

To start Log Analytics Workspace Insights at scale:
  1. Sign in to the Azure portal.
  2. Select Monitor from the left pane in the Azure portal. Under the Insights Hub section, select Log Analytics Workspace Insights.
Dec 28, 2023

How do I Create a virtual machine in Azure AD? ›

Create virtual machine
  1. Enter virtual machines in the search.
  2. Under Services, select Virtual machines.
  3. In the Virtual machines page, select Create and then Virtual machine. ...
  4. In the Basics tab, under Project details, make sure the correct subscription is selected and then choose to Create new resource group.
Jan 4, 2024

How many log analytics workspaces can a single Azure VM be connected to? ›

Windows agents can connect to up to four workspaces, even if they're connected to a System Center Operations Manager management group. The Linux agent doesn't support multi-homing and can only connect to a single workspace or management group.

How to send Azure activity logs to Log Analytics workspace? ›

Select Export Activity Logs to send the activity log to a Log Analytics workspace. You can send the activity log from any single subscription to up to five workspaces. Activity log data in a Log Analytics workspace is stored in a table called AzureActivity that you can retrieve with a log query in Log Analytics.

Do I need a log analytics workspace? ›

You need a Log Analytics workspace if you collect data from: Azure resources in your subscription. On-premises computers monitored by System Center Operations Manager. Device collections from Configuration Manager.

What is the purpose of Azure Log Analytics workspace? ›

Log Analytics is a tool in the Azure portal to edit and run log queries from data collected by Azure Monitor logs and interactively analyze their results. You can use Log Analytics queries to retrieve records that match particular criteria, identify trends, analyze patterns, and provide various insights into your data.

How many log analytics workspaces are there? ›

A single Log Analytics workspace might be sufficient for many environments that use Azure Monitor and Microsoft Sentinel. But many organizations will create multiple workspaces to optimize costs and better meet different business requirements.

How do I add a VM to my workspace in Azure? ›

Use the Azure Portal to create a new Log Analytics workspace.
  1. Navigate to the Log Analytics workspace, you just created.
  2. Click on 'Virtual machines' within the 'Workspace Data Sources' section of the resource menu.
  3. Click on 'vm1'.
  4. Click 'Connect'.

How do I add data to Log Analytics workspace? ›

To send customized JSON data to the Log Analytics Workspace, you can use a custom app to deliver it over the Data Ingestion API. Create a new data collection endpoint and a data collection rule by selecting the custom text logs type with some random file pattern such as '/' .

How to connect to log analytics workspace? ›

To access Azure Log Analytics, you need to sign in to the Azure portal with your Azure account. Once you're signed in, you can access Log Analytics by selecting it from the list of services in the portal. To use Log Analytics, you need to create a Log Analytics workspace in your Azure subscription.

Is Azure Log Analytics workspace free? ›

The default pricing for Log Analytics is a pay-as-you-go model that's based on ingested data volume and data retention. Each Log Analytics workspace is charged as a separate service and contributes to the bill for your Azure subscription.

What is the difference between Azure monitor workspace and Log Analytics workspace? ›

Log Analytics workspaces contain logs and metrics data from multiple Azure resources, whereas Azure Monitor workspaces currently contain only metrics related to Prometheus.

How to change Log Analytics workspace in Azure? ›

  1. Open the Log Analytics workspaces menu and then select your workspace.
  2. On the Overview page, select change next to either Resource group or Subscription name.
  3. A new page opens with a list of resources related to the workspace. ...
  4. Select a destination Subscription and Resource group.
Nov 1, 2023

Top Articles
Stock market today: Dow sinks nearly 400 points, yields rise to 2024 highs
Visa® Debit Cards | Republic Bank
My Vidant Chart
Matthew Rotuno Johnson
Aita Autism
Slushy Beer Strain
Things To Do In Atlanta Tomorrow Night
Shooting Games Multiplayer Unblocked
Enderal:Ausrüstung – Sureai
Chicken Coop Havelock Nc
Best Fare Finder Avanti
Accuradio Unblocked
Mbta Commuter Rail Lowell Line Schedule
Idaho Harvest Statistics
How to Create Your Very Own Crossword Puzzle
MLB power rankings: Red-hot Chicago Cubs power into September, NL wild-card race
Ahn Waterworks Urgent Care
Heart Ring Worth Aj
Atdhe Net
Ice Dodo Unblocked 76
Craigslist Panama City Beach Fl Pets
Skycurve Replacement Mat
Craigslist List Albuquerque: Your Ultimate Guide to Buying, Selling, and Finding Everything - First Republic Craigslist
Copper Pint Chaska
Garden Grove Classlink
NV Energy issues outage watch for South Carson City, Genoa and Glenbrook
Jailfunds Send Message
Shiny Flower Belinda
Soiza Grass
Myhrconnect Kp
Minecraft Jar Google Drive
2016 Honda Accord Belt Diagram
Robeson County Mugshots 2022
20 Best Things to Do in Thousand Oaks, CA - Travel Lens
Registrar Lls
Anderson Tribute Center Hood River
Florida Lottery Claim Appointment
Catchvideo Chrome Extension
3367164101
Theatervoorstellingen in Nieuwegein, het complete aanbod.
Grand Park Baseball Tournaments
Smoke From Street Outlaws Net Worth
Walmart Front Door Wreaths
Campaign Blacksmith Bench
O'reilly's On Marbach
Bob Wright Yukon Accident
All Obituaries | Roberts Funeral Home | Logan OH funeral home and cremation
Bunbrat
Lux Nails & Spa
Latest Posts
Article information

Author: Rueben Jacobs

Last Updated:

Views: 5724

Rating: 4.7 / 5 (77 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Rueben Jacobs

Birthday: 1999-03-14

Address: 951 Caterina Walk, Schambergerside, CA 67667-0896

Phone: +6881806848632

Job: Internal Education Planner

Hobby: Candle making, Cabaret, Poi, Gambling, Rock climbing, Wood carving, Computer programming

Introduction: My name is Rueben Jacobs, I am a cooperative, beautiful, kind, comfortable, glamorous, open, magnificent person who loves writing and wants to share my knowledge and understanding with you.