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:.

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

Latest comments (0)