I have on-prem Linux machines, we store their logs in our Azure storage account as blobs. Can we use Azure log analytics to collect these logs stored in the blob storage?
Yes, we can use Azure log analytics to collect the logs. There are 2 ways:
WAY-1 Try following the below steps
For more information, you can refer to this Document
WAY-2 There is a direct process where you can install a log analytics agent in the virtual machines through Azure Monitor.
Azure Monitor collects the data directly from your physical or virtual Linux computers in your environment into a Log Analytics workspace for detailed analysis and correlation using the azure log analytics agents.
Steps to follow in order to collect data from data center using Azure monitor STEP - 1: Install the log analytics agent for Linux
wget https://raw.githubusercontent.com/Microsoft/OMS-Agent-for-Linux/master/installer/scripts/onboard_agent.sh && sh onboard_agent.sh -w <YOUR WORKSPACE ID> -s <YOUR WORKSPACE PRIMARY KEY>
2. Enter the log analytics workspace id in the following command and restart the agent
sudo /opt/microsoft/omsagent/bin/service_control restart [<workspace id>]
STEP - 2: Collect the event and performance data
Add Recommended Counters
and click Apply.
STEP - 3: View Collected Data
For more information, you can refer to this Blog.