I have a variable defined as such:
fetch `dt.entity.cloudsqs`
| fields tags
| expand tags
| filter contains(tags, "[AWS]environment")
| sort tags asc
| summarize environments = collectDistinct(tags)
which is practical because later on, when the variable is used, I can use the value as-is without transformations
However, this display values as “[AWS]environment:prod”, which I find to be quite bad UX
With a query like:
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)
I can get only my values, but the variable is hard to use as it is not the complete tag
Is there a way to display only the value and get the tag? Or a good way to transform from one to the other later on (while using multi-select)?
