DEV Community

Jonas Samuelsson
Jonas Samuelsson

Posted on

kusto - filter by custom dimension keys

I sometimes want to filter app insights entries based on whether a custom dimension exists or not.

mv-expand to the rescue 😃

The query below returns requests containing a custom dimension starting with the string toggle:.

| extend dimension = bag_keys(customDimensions)
| mv-expand dimension
| where dimension startswith "toggle:"
Enter fullscreen mode Exit fullscreen mode

Latest comments (0)

Here is a post you might want to check out:

Regex for lazy developers

regex for lazy devs

Sorry for the callout 😆