Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Set Azure VM to enable diagnostics

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

When you need to troubleshoot an Azure virtual machine, you can use the Azure diagnostics provided by Microsoft. Diagnostics can capture system data and logging data on a running virtual machine instance. Diagnostic data is transferred to the selected storage account.

This article describes how to set up diagnostics on the Azure virtual machine, how to select the type of diagnostics to collect, and how to view the information after it has been collected.

1. Log in to the Azure Portal

two。 Click the virtual machine in the left navigation bar

3. Select the virtual machine for which diagnostics need to be set, then click Diagnostic Settings in Monitoring, and click enable Guest level Monitoring

You can view the enablement in the notification

After enabling, you can see some default diagnostic settings in the diagnostic settings, and you can also modify them according to the actual needs.

In the diagnostic settings,-the agent clicks the storage account to view the relevant logs in the storage account, as shown in the following figure

Open the diagnostic table in the table viewer and view the collected data. For IIS logs and custom logs, you can open the Blob container. The tables or Blob containers listed in the following table contain data for different log files. In addition to the data from the log file, the table entry contains EventTickCount, DeploymentId, Role, and RoleInstance to help determine which virtual machine and role the data was generated by and when.

Diagnostic data

Description

Position

Application log

The log that the code generates by calling the method of the System.Diagnostics.Trace class.

WADLogsTable

Event log

Data in the Windows event log on the virtual machine. Windows stores information in these logs, but applications and services also use these logs to report errors or record information.

WADWindowsEventLogsTable

Performance counter

You can collect data from any performance counters available on the virtual machine. The operating system can counter, which contains a variety of statistics, such as memory utilization and processor time.

WADPerformanceCountersTable

Infrastructure log

Logs generated from the diagnostic infrastructure itself.

WADDiagnosticInfrastructureLogsTable

IIS log

Log Web requests. If the cloud service gets a lot of traffic, these logs can be long. It is best to collect and store such data only when needed.

In the Blob container, you can find the log of the failed request under the wad-iis-failedreqlogs of the corresponding deployment, role, and instance path. You can find the full log under wad-iis-logfiles. The entries for each file are recorded in the WADDirectories table.

Fault dump

Provides a binary image of a cloud service process (usually a secondary role).

Wad-crush-dumps Blob container

Custom log file

Predefined data logs.

You can specify the location of the custom log file in the storage account through code. For example, you can specify a custom Blob container.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report