14 Jul 2023 11:59 AM
fetch dt.entity.host | summarize count = count(), by:{tags} | sort count desc | fields tags
Solved! Go to Solution.
14 Jul 2023 12:10 PM
Hi @elenaperez
to get a list of unique tag values for the tag "Business Application" this dql query should work for you
fetch dt.entity.host
| expand tags
| summarize tags = collectDistinct(tags)
| expand tags
| parse tags, """((LD:tag (!<<'\\' ':') LD:value)|LD:tag)"""
| fields tag = replaceString(tag,"""\:""", ":"), value = replaceString(value, """\:""", ":")
| filter toString(tag) == "Business Application"
| fields value
Best,
Sini
14 Jul 2023 12:25 PM
Thank you so much, it is exactly what I was looking for! Super helpful