Azure Log Analytics – RegEx case insensitive

This post is also available in Deutsch

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