<?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: XQL 2 Datasets in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-2-datasets/m-p/1190365#M7774</link>
    <description>&lt;P&gt;Thank you so much for your reply,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;what happens if the field is an array? what function should I use in that situation or where can I read more about it ?&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jan 2025 21:22:23 GMT</pubDate>
    <dc:creator>J.Gammara</dc:creator>
    <dc:date>2025-01-20T21:22:23Z</dc:date>
    <item>
      <title>XQL 2 Datasets</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-2-datasets/m-p/1139405#M7772</link>
      <description>&lt;P&gt;Hello community,&lt;BR /&gt;&lt;BR /&gt;I am reaching out to you after many hours of trying to get this XQL query but something is not working.&lt;BR /&gt;&lt;BR /&gt;I need to join the IP address from endpoints to my query&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;dataset = management_auditing &lt;BR /&gt;| filter description contains "SOX" and (description contains "assign tags" or description contains "remove tags") &lt;BR /&gt;| alter HOSTNAME = if(description contains "assign tags", ltrim(description, "Assign tags (SOX) for"), ltrim(description, "Remove tags (SOX) for"))&lt;BR /&gt;| alter ACTION_TYPE = if(description contains "assign tags", "Assign", "Remove")&lt;BR /&gt;| join ( dataset = endpoints | fields ip_address as Ipaddress) as endpoints endpoints.Ipaddress = source_ip &lt;BR /&gt;| fields _time, ACTION_TYPE as Tipo_Accion, HOSTNAME as Hostname, description as Actividad_Realizada, source_ip as IP, user_name, management_auditing_result as Estado_Accion&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;however it is not working as it is saying that the Join statement needs to be fixed,&amp;nbsp; I would appreciate your assistance with checking what could be wrong with this Query&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 16:46:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-2-datasets/m-p/1139405#M7772</guid>
      <dc:creator>J.Gammara</dc:creator>
      <dc:date>2025-01-20T16:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: XQL 2 Datasets</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-2-datasets/m-p/1176939#M7773</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1561359921"&gt;@J.Gammara&lt;/a&gt;, thanks for reaching us using the Live Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "ip_address" field in the "endpoints" dataset is an array, you need to get all the values from the array first to compare the values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can check the dataset schemas by running a query to the dataset without any other stage, and going to the "Schema" tab:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jmazzeo_1-1737403787329.png" style="width: 775px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/65327i1F4C3AD3EEB10AF4/image-dimensions/775x688?v=v2" width="775" height="688" role="button" title="jmazzeo_1-1737403787329.png" alt="jmazzeo_1-1737403787329.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post answers your question, please mark it as the solution.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 20:10:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-2-datasets/m-p/1176939#M7773</guid>
      <dc:creator>jmazzeo</dc:creator>
      <dc:date>2025-01-20T20:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: XQL 2 Datasets</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-2-datasets/m-p/1190365#M7774</link>
      <description>&lt;P&gt;Thank you so much for your reply,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;what happens if the field is an array? what function should I use in that situation or where can I read more about it ?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 21:22:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-2-datasets/m-p/1190365#M7774</guid>
      <dc:creator>J.Gammara</dc:creator>
      <dc:date>2025-01-20T21:22:23Z</dc:date>
    </item>
  </channel>
</rss>

