<?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: About cross-tabulation in XQL in Cortex XSIAM Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/about-cross-tabulation-in-xql/m-p/1219993#M154</link>
    <description>&lt;P&gt;Easy way to make it comp(count) per action. Like example here:&lt;BR /&gt;&lt;BR /&gt;dataset = firewall&lt;BR /&gt;| filter act in ("allow", "deny")&lt;BR /&gt;| comp count() as total by act&lt;BR /&gt;&lt;BR /&gt;You should return total -&amp;gt; act count (deny/allow).&lt;BR /&gt;&lt;BR /&gt;If you need to make it per day, you should create a new field "day". To make it, you can use replex. Example: | alter day = replex(to_string(date_floor(_time, "d")), "\d+:\d+:\d+\+00","")&lt;BR /&gt;So, your query should looks like:&lt;BR /&gt;&lt;BR /&gt;dataset = firewall&lt;BR /&gt;| alter day = replex(to_string(date_floor(_time, "d")), "\d+:\d+:\d+\+00","")&lt;BR /&gt;| comp count() as total by act, day&lt;BR /&gt;&lt;BR /&gt;Results: Total | Act | Day&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2025 09:39:56 GMT</pubDate>
    <dc:creator>MDovirak</dc:creator>
    <dc:date>2025-02-11T09:39:56Z</dc:date>
    <item>
      <title>About cross-tabulation in XQL</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/about-cross-tabulation-in-xql/m-p/1204832#M140</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to execute PIVOT on the results of XQL execution?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;For example, if I execute an XQL query on the following table&lt;/P&gt;
&lt;P&gt;1/1/2025 allow hostname&lt;BR /&gt;1/1/2025 deny hostname&lt;BR /&gt;1/2/2025 allow hostname&lt;BR /&gt;1/2/2025 allow hostname&lt;BR /&gt;1/3/2025 deny hostname&lt;BR /&gt;1/3/2025 deny hostname&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to get the following output&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; allow　deny&lt;BR /&gt;1/1/2025　　　1　&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;1/2/2025　　　2　　 0&lt;BR /&gt;1/3/2025　　　0　　 2&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 08:56:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/about-cross-tabulation-in-xql/m-p/1204832#M140</guid>
      <dc:creator>T.Abe940625</dc:creator>
      <dc:date>2025-01-22T08:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: About cross-tabulation in XQL</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/about-cross-tabulation-in-xql/m-p/1219993#M154</link>
      <description>&lt;P&gt;Easy way to make it comp(count) per action. Like example here:&lt;BR /&gt;&lt;BR /&gt;dataset = firewall&lt;BR /&gt;| filter act in ("allow", "deny")&lt;BR /&gt;| comp count() as total by act&lt;BR /&gt;&lt;BR /&gt;You should return total -&amp;gt; act count (deny/allow).&lt;BR /&gt;&lt;BR /&gt;If you need to make it per day, you should create a new field "day". To make it, you can use replex. Example: | alter day = replex(to_string(date_floor(_time, "d")), "\d+:\d+:\d+\+00","")&lt;BR /&gt;So, your query should looks like:&lt;BR /&gt;&lt;BR /&gt;dataset = firewall&lt;BR /&gt;| alter day = replex(to_string(date_floor(_time, "d")), "\d+:\d+:\d+\+00","")&lt;BR /&gt;| comp count() as total by act, day&lt;BR /&gt;&lt;BR /&gt;Results: Total | Act | Day&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 09:39:56 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/about-cross-tabulation-in-xql/m-p/1219993#M154</guid>
      <dc:creator>MDovirak</dc:creator>
      <dc:date>2025-02-11T09:39:56Z</dc:date>
    </item>
  </channel>
</rss>

