Category Archives: Log Analytics

Query the Log Analytics Workspace for all Azure VM

Sometimes you just need to know to which Log Analytics Workspace (OMS for the old folks out there) a VM send it’s data to. Or even all of you Azure VMs an once.

With the following script this task is easy as pie. And thanks to RamblingCookieMonster and his PSExcel modul you can send the result straight to everybody who is fond of Excel.

Azure Log Analytics – RegEx case insensitive

When searching in Log Analytics, matches regex can be very helpful. By default, the Regular Expression Case is Sensitive. To change this, the parameter i must be passed.

Here is a sample query that searches the IIS logs for logs from a particular computer.

| where ( Computer matches regex "(?i)MyCoMpUtEr" )
// (?i) = Case insensitive