DEV Community

Jonas Samuelsson
Jonas Samuelsson

Posted on

1

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)

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay