Collect data from Linux-based sources using syslog

Completed

Configuring the Azure Monitor Agent for Syslog on Linux machines:

To install the agent on an Azure Linux virtual machine:

  1. In the Azure portal, enter Monitor in the Search resources, services, and docs search bar.

  2. In Monitor, scroll down the left menu to the Settings section and select Data Collection Rules.

  3. In Monitor | Data Collection Rules, select + Create.

    Screenshot of the Monitor Data Collection Rule create page.

  4. On the Data Collection Rule Basics tab, enter a Rule name and specify a Subscription, Resource Group, Region, and Platform Type. For this exercise, select Linux for Platform Type.

  5. Select Next:Resources

  6. On the Data Collection Rule Resources tab, select + Add resources.

  7. In the Select a scope page, expand the Scope column for Subscription and Resource group types until your target VM is displayed.

  8. Select the target VM and select Apply. You should see your Linux VM displayed as a Resource.

    Screenshot of the Monitor Data Collection Rule Add resources and Sect a scope pages

  9. Select Next: Collect and deliver.

  10. On the Data Collection Rule Collect and deliver tab, select + Add data source.

  11. In the Add data source page, select Linux Syslog from the Data source type* drop-down menu, and select Add data source. You should see your Linux Syslog Data source and a Destinations(s) of Azure Monitor Logsdisplayed.

  12. Select Review + create, and Create after Validation passed is displayed.

    Note

    This process initiates the Azure Monitor Linux Agent extension install.

  13. After the process completes, locate Virtual Machines in the Azure portal and select the Linux VM you configured as a Data Collection Rule resource.

  14. On the Virtual machine Overview, scroll down the left menu to the Settings section and select Extensions + applications.

  15. Under the Extensions tab, you should see the AzureMonitorLinuxAgent displayed.

    Screenshot of the Azure Monitor Linux Agent on an Azure VM.

    Note

    If Microsoft Defender for Cloud Auto-provisioning is enabled, the Azure Monitor Linux Agent is installed by default as an extension using Azure Policy assignment.