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

Top comments (0)

Stop sifting through your feed.

Find the content you want to see.

Change your feed algorithm by adjusting your experience level and give weights to the tags you follow.