Articles → MICROSOFT AZURE → Query The Log Analytics Workspace In Azure
Query The Log Analytics Workspace In Azure
Steps
- Create a virtual machine
- Create a log analytics workspace
- Connect the virtual machine to the log analytics workspace
- Create an agent configuration
- Query log analytics workspace
Create A Virtual Machine
Click to Enlarge
Create A Log Analytics Workspace
Click to Enlarge
Connect The Virtual Machine To The Log Analytics Workspace
Click to Enlarge
Click to Enlarge
Click to Enlarge
Click to Enlarge
Create An Agent Configuration
Click to Enlarge
Click to Enlarge
Query Log Analytics Workspace
New-EventLog -LogName Application -Source ‘Gyansangrah’
Write-EventLog -LogName Application -EventID 2001 -EntryType Warning -Source ‘Gyansangrah’ -Message ‘How are you Gyan?’
Click to Enlarge
How To Search A String In The Table?
Click to Enlarge