<?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 XQL for Creating Multi-Series Line Timechart Graph in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-for-creating-multi-series-line-timechart-graph/m-p/596908#M7147</link>
    <description>&lt;P&gt;Hi all.&lt;BR /&gt;&lt;BR /&gt;I want to create multi-line graph, and I can create it. But My XQL query is too long and too many manual operation is there.&lt;BR /&gt;Do you have good idea for create multi-series line graph? (more shorter one)&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Example (Just example. There are no Confidential Information)&lt;BR /&gt;&lt;/STRONG&gt;When I have some datesets, and I want to create graph for Log Ingestion count for each dataset.&lt;BR /&gt;To count log numbers, I use _product field for distinguish each dataset.&lt;/P&gt;
&lt;P&gt;Field value example is here "&lt;BR /&gt;&lt;BR /&gt;httpd&lt;BR /&gt;parse&lt;BR /&gt;parsetime&lt;BR /&gt;httpdv2&lt;BR /&gt;apache&lt;BR /&gt;httpd_droptest&lt;BR /&gt;regexcapture&lt;BR /&gt;&lt;BR /&gt;To create multi-series time-series graph, I wrote query below.&lt;BR /&gt;&lt;BR /&gt;dataset = vendor_* &lt;BR /&gt;| alter regexcapture = if (_product="regexcapture", 1,0)&lt;BR /&gt;| alter httpd_droptest = if (_product="httpd_droptest", 1,0) &lt;BR /&gt;| alter httpd = if(_product="httpd",1,0) &lt;BR /&gt;| alter parse = if(_product="parse",1,0)&lt;BR /&gt;| alter parsetime = if(_product="parsetime",1,0) &lt;BR /&gt;| alter httpdv2 = if(_product="httpdv2",1,0) &lt;BR /&gt;| alter apache = if(_product="apache",1,0) &lt;BR /&gt;| bin _time span = 1h &lt;BR /&gt;| comp sum(regexcapture) as regexcapture , sum(httpd_droptest) as httpd_droptest , sum(httpd) as httpd, sum(parse) as parse, sum(parsetime) as parsetime, sum(httpdv2) as httpdv2, sum(apache) as apache, count() as all by _time | view graph type = line xaxis = _time yaxis = httpd_droptest , regexcapture, httpd, parse, parsetime, httpdv2, apache&lt;BR /&gt;&lt;BR /&gt;Then, I get graph below&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HFukuda_0-1725501004747.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/62044iA3329FF7CD85B299/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="HFukuda_0-1725501004747.png" alt="HFukuda_0-1725501004747.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I can create multi-series timechart graph, but this query has some problem.&lt;BR /&gt;&lt;BR /&gt;Problem 1. Too Long.&lt;/P&gt;
&lt;P&gt;This is very simple graph, but I need very long command. If we can this query become shorter, please advice for me.&lt;BR /&gt;&lt;BR /&gt;Problem 2.&amp;nbsp;Very inconvenient.&lt;BR /&gt;To count each dataset, I have to create new field name using alter command and I have to check _product field.&lt;BR /&gt;And I have to use sum function for each dataset, and I have to set Y-Axis field name using view command.&lt;BR /&gt;If I got new dataset name, I have to change each point.&lt;/P&gt;
&lt;P&gt;Very very inconvenient...&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Does there any useful command like a timechart or foreach or eval function(XQL have alter command but there are no alter function) on SPL?&lt;/P&gt;</description>
    <pubDate>Thu, 05 Sep 2024 01:58:44 GMT</pubDate>
    <dc:creator>H.Fukuda</dc:creator>
    <dc:date>2024-09-05T01:58:44Z</dc:date>
    <item>
      <title>XQL for Creating Multi-Series Line Timechart Graph</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-for-creating-multi-series-line-timechart-graph/m-p/596908#M7147</link>
      <description>&lt;P&gt;Hi all.&lt;BR /&gt;&lt;BR /&gt;I want to create multi-line graph, and I can create it. But My XQL query is too long and too many manual operation is there.&lt;BR /&gt;Do you have good idea for create multi-series line graph? (more shorter one)&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Example (Just example. There are no Confidential Information)&lt;BR /&gt;&lt;/STRONG&gt;When I have some datesets, and I want to create graph for Log Ingestion count for each dataset.&lt;BR /&gt;To count log numbers, I use _product field for distinguish each dataset.&lt;/P&gt;
&lt;P&gt;Field value example is here "&lt;BR /&gt;&lt;BR /&gt;httpd&lt;BR /&gt;parse&lt;BR /&gt;parsetime&lt;BR /&gt;httpdv2&lt;BR /&gt;apache&lt;BR /&gt;httpd_droptest&lt;BR /&gt;regexcapture&lt;BR /&gt;&lt;BR /&gt;To create multi-series time-series graph, I wrote query below.&lt;BR /&gt;&lt;BR /&gt;dataset = vendor_* &lt;BR /&gt;| alter regexcapture = if (_product="regexcapture", 1,0)&lt;BR /&gt;| alter httpd_droptest = if (_product="httpd_droptest", 1,0) &lt;BR /&gt;| alter httpd = if(_product="httpd",1,0) &lt;BR /&gt;| alter parse = if(_product="parse",1,0)&lt;BR /&gt;| alter parsetime = if(_product="parsetime",1,0) &lt;BR /&gt;| alter httpdv2 = if(_product="httpdv2",1,0) &lt;BR /&gt;| alter apache = if(_product="apache",1,0) &lt;BR /&gt;| bin _time span = 1h &lt;BR /&gt;| comp sum(regexcapture) as regexcapture , sum(httpd_droptest) as httpd_droptest , sum(httpd) as httpd, sum(parse) as parse, sum(parsetime) as parsetime, sum(httpdv2) as httpdv2, sum(apache) as apache, count() as all by _time | view graph type = line xaxis = _time yaxis = httpd_droptest , regexcapture, httpd, parse, parsetime, httpdv2, apache&lt;BR /&gt;&lt;BR /&gt;Then, I get graph below&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HFukuda_0-1725501004747.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/62044iA3329FF7CD85B299/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="HFukuda_0-1725501004747.png" alt="HFukuda_0-1725501004747.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I can create multi-series timechart graph, but this query has some problem.&lt;BR /&gt;&lt;BR /&gt;Problem 1. Too Long.&lt;/P&gt;
&lt;P&gt;This is very simple graph, but I need very long command. If we can this query become shorter, please advice for me.&lt;BR /&gt;&lt;BR /&gt;Problem 2.&amp;nbsp;Very inconvenient.&lt;BR /&gt;To count each dataset, I have to create new field name using alter command and I have to check _product field.&lt;BR /&gt;And I have to use sum function for each dataset, and I have to set Y-Axis field name using view command.&lt;BR /&gt;If I got new dataset name, I have to change each point.&lt;/P&gt;
&lt;P&gt;Very very inconvenient...&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Does there any useful command like a timechart or foreach or eval function(XQL have alter command but there are no alter function) on SPL?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 01:58:44 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-for-creating-multi-series-line-timechart-graph/m-p/596908#M7147</guid>
      <dc:creator>H.Fukuda</dc:creator>
      <dc:date>2024-09-05T01:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: XQL for Creating Multi-Series Line Timechart Graph</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-for-creating-multi-series-line-timechart-graph/m-p/597020#M7154</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/453436187"&gt;@H.Fukuda&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;There is an out of the box dashboard called "Data Ingestion" with a few graphs and some other useful information similiar to your needs. Have you taken a look on that one?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 18:55:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-for-creating-multi-series-line-timechart-graph/m-p/597020#M7154</guid>
      <dc:creator>jmazzeo</dc:creator>
      <dc:date>2024-09-05T18:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: XQL for Creating Multi-Series Line Timechart Graph</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-for-creating-multi-series-line-timechart-graph/m-p/597053#M7159</link>
      <description>&lt;P&gt;Hi Jmazzeo,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks for repling my post.&lt;/P&gt;
&lt;P&gt;&amp;gt;Data Ingestion&lt;/P&gt;
&lt;P&gt;My graph's data source is just example.&lt;/P&gt;
&lt;P&gt;My question is how to create more easier XQL query.&lt;/P&gt;
&lt;P&gt;So I will appreciate if you share good XQL example.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 00:23:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-for-creating-multi-series-line-timechart-graph/m-p/597053#M7159</guid>
      <dc:creator>H.Fukuda</dc:creator>
      <dc:date>2024-09-06T00:23:17Z</dc:date>
    </item>
  </channel>
</rss>

