05 Jun 2024 10:05 AM - last edited on 06 Jun 2024 08:02 AM by MaciejNeumann
In the old dashboard, I have a dynamic filter set on a specific AWS tag "Tag key: Custom device [AWS]environment"
I'm trying to replicate this behaviour in the new dashboards, using variables
However, using DQL I'm failing to write a query to extract the possible values for a specific tag
Here's where I am so far :
fetch `dt.entity.cloudsqs`
| fields tags
(not very far along as you can see)
My goal is to have a variable listing all existing values for my "environment" tag
Solved! Go to Solution.
06 Jun 2024 04:45 PM
maybe this can help
fetch dt.entity.cloudsqs
| fields tags
| expand tags
| filter contains(tags, "[AWS]environment")
| parse tags, """LD ':' LD:value"""
| fieldsRemove tags
| sort value asc
| summarize environments = collectDistinct(value)
07 Jun 2024 10:04 AM
Works great! Thanks 🙂