<?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 Re: Cortex XDR - New Widget in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-new-widget/m-p/518072#M3028</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks! Basically our x axis should be the tag name and y axis the count of endpoints having the tag.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 06:23:37 GMT</pubDate>
    <dc:creator>RamyashreeMada</dc:creator>
    <dc:date>2022-10-17T06:23:37Z</dc:date>
    <item>
      <title>Cortex XDR - New Widget</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-new-widget/m-p/517770#M3017</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can we create a widget with regards to endpoint tag and number of agents?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt; &lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 10:24:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-new-widget/m-p/517770#M3017</guid>
      <dc:creator>RamyashreeMada</dc:creator>
      <dc:date>2022-10-13T10:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cortex XDR - New Widget</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-new-widget/m-p/517901#M3022</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/206335"&gt;@RamyashreeMada&lt;/a&gt;&amp;nbsp;Yes, you can.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Share the XQL that you've written so far, and let us work together to fine-tune it for your needs.&lt;BR /&gt;Hint: you'll start off with&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dataset = endpoints
| alter server_tags = tags -&amp;gt;server_tags[]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 02:18:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-new-widget/m-p/517901#M3022</guid>
      <dc:creator>bbarmanroy</dc:creator>
      <dc:date>2022-10-14T02:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cortex XDR - New Widget</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-new-widget/m-p/517911#M3023</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently, we need create a graph with X-axis as all the different tags and Y-axis as the number of endpoints. Now the tags we have is in the format "Team A: Product 1". In this we have to get numbers of endpoint for Team A tag + another widget for the different products in Team A tag. Currently, my SQL query looks like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dataset = Endpoints&lt;/P&gt;
&lt;P&gt;| Tags contains "Team A"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be helpful if you guide us on how we proceed further.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 05:20:48 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-new-widget/m-p/517911#M3023</guid>
      <dc:creator>Aiman_Fathima</dc:creator>
      <dc:date>2022-10-14T05:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cortex XDR - New Widget</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-new-widget/m-p/517912#M3024</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/224150"&gt;@Aiman_Fathima&lt;/a&gt;&amp;nbsp;, you'll need to process it further to narrow down to the exact tag before you can count it (or at least cleanly). There are two ways to do it.&lt;/P&gt;
&lt;P&gt;1. The recommended way is to change the tags from "TeamA:Product1" to two tags "TeamA, Product1". This will allow you to slice and dice more effectively, without requiring to use "contains".&lt;/P&gt;
&lt;P&gt;2. If you want to keep the current tag format, you'll have to use a 'split' function to split the tags, and then continue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you do that, you'll end up with an array of tags. Expand it (using arrayexpand), and tell me what you think the next step should be!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 06:25:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-new-widget/m-p/517912#M3024</guid>
      <dc:creator>bbarmanroy</dc:creator>
      <dc:date>2022-10-14T06:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cortex XDR - New Widget</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-new-widget/m-p/517943#M3025</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I&amp;nbsp;tried to run this query . dataset = endpoints |filter tags contains "team A" |alter server_tags = tags -&amp;gt; server_tags[] | comp count(server_tags). I tried to display the tags in x axsis using the fields but it does not take tags or server_tags as a valid field.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 12:05:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-new-widget/m-p/517943#M3025</guid>
      <dc:creator>RamyashreeMada</dc:creator>
      <dc:date>2022-10-14T12:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cortex XDR - New Widget</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-new-widget/m-p/518057#M3027</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/206335"&gt;@RamyashreeMada&lt;/a&gt;&amp;nbsp;you are almost there.&lt;/P&gt;
&lt;P&gt;This is what you wrote:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dataset = endpoints 
|filter tags contains "team A" 
|alter server_tags = tags -&amp;gt; server_tags[] 
| comp count(server_tags)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Line 3 contains the results of extracting the server_tags[] and returns an array. You'll need to use 'arrayexpand' to get results with each row containing one instance of server_tags. I advised the same in my earlier post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dataset = endpoints 
|filter tags contains "tag" 
|alter server_tags = tags -&amp;gt; server_tags[] 
| arrayexpand server_tags &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The last step is to count the number of endpoints corresponding to each tag. Can you help us out here by telling how it should look like?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 06:03:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-new-widget/m-p/518057#M3027</guid>
      <dc:creator>bbarmanroy</dc:creator>
      <dc:date>2022-10-17T06:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cortex XDR - New Widget</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-new-widget/m-p/518072#M3028</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks! Basically our x axis should be the tag name and y axis the count of endpoints having the tag.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 06:23:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-new-widget/m-p/518072#M3028</guid>
      <dc:creator>RamyashreeMada</dc:creator>
      <dc:date>2022-10-17T06:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cortex XDR - New Widget</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-new-widget/m-p/518189#M3033</link>
      <description>&lt;P&gt;That's right!&lt;/P&gt;
&lt;P&gt;Can you share the final version of the query for everyone to be able to use it to their needs?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 04:21:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-new-widget/m-p/518189#M3033</guid>
      <dc:creator>bbarmanroy</dc:creator>
      <dc:date>2022-10-18T04:21:09Z</dc:date>
    </item>
  </channel>
</rss>

