<?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 use to or operator in the Regextract in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-use-to-or-operator-in-the-regextract/m-p/582276#M6446</link>
    <description>&lt;P&gt;Hi Jmazzeo,&lt;/P&gt;
&lt;P&gt;Thank you for your&amp;nbsp;response. But&amp;nbsp; When I do as you specified in XQL, I get "&lt;BR /&gt;Could not be executed because your query is invalid." error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My XQL query&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dataset =microsoft_windows_raw&lt;BR /&gt;|alter etki=regextract(message ,"Etki\sAlanı\sAdı\:\s+([^\n\r]+)|Domain\sName\:\s+([^\n\r]+)")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In our event logs, we will use the logs we receive from Turkish and English operating systems in correlations. This "OR" operator will make our job really easy. &lt;BR /&gt;I can get the result I need with the query below, but I need to write a lot of code.&lt;/P&gt;
&lt;P&gt;dataset =microsoft_windows_raw&lt;/P&gt;
&lt;P&gt;|change domain1=arrayindex(regextract(message , "Domain\sArea\sName\:\s+([^\n\r]+)"),0 ) &lt;BR /&gt;|change domain2=arrayindex(regextract(message , "Domain\sName\:\s+([^\n\r]+)"),0)&lt;BR /&gt;&lt;BR /&gt;|alter final_domain_name= &lt;BR /&gt;if (domain1!= "", &lt;BR /&gt;domain1,&lt;BR /&gt;domain2 )&lt;/P&gt;
&lt;P&gt;|limit 100&lt;BR /&gt;|fields final_domain_name ,*&lt;/P&gt;</description>
    <pubDate>Mon, 01 Apr 2024 19:20:02 GMT</pubDate>
    <dc:creator>AtilaTasli</dc:creator>
    <dc:date>2024-04-01T19:20:02Z</dc:date>
    <item>
      <title>XQL use to or operator in the Regextract</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-use-to-or-operator-in-the-regextract/m-p/582018#M6444</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I want to use or operator in XQL regextraxt but the following command does not work. Can you help us.&lt;BR /&gt;Thank you.&lt;/P&gt;
&lt;P&gt;|alter etki=regextract(message ,"Etki\sAlanı\sAdı\:\s+([^\n\r]+) | Domain\sName\:\s+([^\n\r]+)")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 09:40:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-use-to-or-operator-in-the-regextract/m-p/582018#M6444</guid>
      <dc:creator>AtilaTasli</dc:creator>
      <dc:date>2024-03-28T09:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: XQL use to or operator in the Regextract</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-use-to-or-operator-in-the-regextract/m-p/582269#M6445</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/331889"&gt;@AtilaTasli&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;Please remove the whitespaces at each side of the "|" character and try again.&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, 01 Apr 2024 18:53:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-use-to-or-operator-in-the-regextract/m-p/582269#M6445</guid>
      <dc:creator>jmazzeo</dc:creator>
      <dc:date>2024-04-01T18:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: XQL use to or operator in the Regextract</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-use-to-or-operator-in-the-regextract/m-p/582276#M6446</link>
      <description>&lt;P&gt;Hi Jmazzeo,&lt;/P&gt;
&lt;P&gt;Thank you for your&amp;nbsp;response. But&amp;nbsp; When I do as you specified in XQL, I get "&lt;BR /&gt;Could not be executed because your query is invalid." error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My XQL query&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dataset =microsoft_windows_raw&lt;BR /&gt;|alter etki=regextract(message ,"Etki\sAlanı\sAdı\:\s+([^\n\r]+)|Domain\sName\:\s+([^\n\r]+)")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In our event logs, we will use the logs we receive from Turkish and English operating systems in correlations. This "OR" operator will make our job really easy. &lt;BR /&gt;I can get the result I need with the query below, but I need to write a lot of code.&lt;/P&gt;
&lt;P&gt;dataset =microsoft_windows_raw&lt;/P&gt;
&lt;P&gt;|change domain1=arrayindex(regextract(message , "Domain\sArea\sName\:\s+([^\n\r]+)"),0 ) &lt;BR /&gt;|change domain2=arrayindex(regextract(message , "Domain\sName\:\s+([^\n\r]+)"),0)&lt;BR /&gt;&lt;BR /&gt;|alter final_domain_name= &lt;BR /&gt;if (domain1!= "", &lt;BR /&gt;domain1,&lt;BR /&gt;domain2 )&lt;/P&gt;
&lt;P&gt;|limit 100&lt;BR /&gt;|fields final_domain_name ,*&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 19:20:02 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-use-to-or-operator-in-the-regextract/m-p/582276#M6446</guid>
      <dc:creator>AtilaTasli</dc:creator>
      <dc:date>2024-04-01T19:20:02Z</dc:date>
    </item>
  </channel>
</rss>

