<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Get value from key value pair in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Get-value-from-key-value-pair/m-p/224267#M269</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi team, want to have the result CS-MONITORING, how&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fetch dt.entity.host&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| expand tags&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| filter contains(tags, "invoiced_team")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| summarize str_tags = collectDistinct(tags)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OustiDiousti_0-1695998820075.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/14381i349321408F3C9E26/image-size/medium?v=v2&amp;amp;px=400" role="button" title="OustiDiousti_0-1695998820075.png" alt="OustiDiousti_0-1695998820075.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Oct 2023 07:54:02 GMT</pubDate>
    <dc:creator>OustiDiousti</dc:creator>
    <dc:date>2023-10-02T07:54:02Z</dc:date>
    <item>
      <title>Get value from key value pair</title>
      <link>https://community.dynatrace.com/t5/DQL/Get-value-from-key-value-pair/m-p/224267#M269</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi team, want to have the result CS-MONITORING, how&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fetch dt.entity.host&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| expand tags&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| filter contains(tags, "invoiced_team")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| summarize str_tags = collectDistinct(tags)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OustiDiousti_0-1695998820075.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/14381i349321408F3C9E26/image-size/medium?v=v2&amp;amp;px=400" role="button" title="OustiDiousti_0-1695998820075.png" alt="OustiDiousti_0-1695998820075.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 07:54:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Get-value-from-key-value-pair/m-p/224267#M269</guid>
      <dc:creator>OustiDiousti</dc:creator>
      <dc:date>2023-10-02T07:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from key value pair</title>
      <link>https://community.dynatrace.com/t5/DQL/Get-value-from-key-value-pair/m-p/224268#M270</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/55612"&gt;@OustiDiousti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check out our documentation about how to query entities in Grail:&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/platform/grail/querying-monitored-entities#entity-tags" target="_blank"&gt;https://www.dynatrace.com/support/help/platform/grail/querying-monitored-entities#entity-tags&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Basically you need to expand the array of tags and parse it&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fetch dt.entity.host
| expand tag_string=tags
| filter contains(tag_string,"invoiced_team")
| parse tag_string, """(('['LD:tag_context ']' LD:tag_key (!&amp;lt;&amp;lt;'\\' ':') LD:tag_value)| (LD:tag_key (!&amp;lt;&amp;lt;'\\' ':') LD:tag_value)|LD:tag_key)"""&lt;/LI-CODE&gt;
&lt;P&gt;Best,&lt;BR /&gt;Sini&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 14:54:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Get-value-from-key-value-pair/m-p/224268#M270</guid>
      <dc:creator>sinisa_zubic</dc:creator>
      <dc:date>2023-09-29T14:54:51Z</dc:date>
    </item>
  </channel>
</rss>

