How can i audit diagnostic setting for selected Virtual machine .

jihad majed 400 Reputation points
2023-05-25T11:16:58.7933333+00:00

How can I audit the diagnostic settings for a selected virtual machine?

If I want to send log analytics with all metrics and logs .

 

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,985 questions
{count} votes

Accepted answer
  1. Tech-Hyd-1989 5,796 Reputation points
    2023-05-25T12:43:40.19+00:00

    Hello jihad majed

    To audit the diagnostic settings for a selected virtual machine, you can use the Azure Portal or Azure PowerShell. Here are the steps to do it using the Azure Portal:

    1. Go to the Azure Portal and navigate to the virtual machine you want to audit.
    2. Click on "Diagnostic settings" under the Monitoring section in the left-hand menu.
    3. Review the diagnostic settings for the virtual machine. You can see which logs and metrics are being collected, and where they are being sent.

    To send log analytics with all metrics and logs, you can follow these steps:

    1. Create a Log Analytics workspace in the Azure Portal.
    2. In the Azure Portal, navigate to the virtual machine you want to configure.
    3. Click on "Diagnostic settings" under the Monitoring section in the left-hand menu.
    4. Click on "Add diagnostic setting".
    5. Enter a name for the diagnostic setting.
    6. Under "Logs", select the logs you want to collect. You can select all logs by clicking on "Select all".
    7. Under "Metrics", select the metrics you want to collect. You can select all metrics by clicking on "Select all".
    8. Under "Destination details", select "Send to Log Analytics".
    9. Select the Log Analytics workspace you created in step 1.
    10. Click on "Save".

    After completing these steps, all logs and metrics selected in the diagnostic setting will be sent to the Log Analytics workspace you specified.

    <If the above information was helpful, please don't forget to accept answer to help others in the community>

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.