<?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: Top 10 Values Timeseries with Additional 'Other' Aggregate Category in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Top-10-Values-Timeseries-with-Additional-Other-Aggregate/m-p/234308#M562</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jegron_1-1705310933545.png" style="width: 541px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16820i4352A402E793FEBC/image-dimensions/541x268?v=v2" width="541" height="268" role="button" title="jegron_1-1705310933545.png" alt="jegron_1-1705310933545.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I don't understand why there is the "C" value here. What does it mean ?&lt;/P&gt;&lt;P&gt;Also Does Dynatrace plan to release an "useother" option for Timeseries like competitor?&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Syntax:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;useother=&amp;lt;bool&amp;gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Description:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;You specify which series to include in the results table by using the &amp;lt;agg&amp;gt;, &amp;lt;limit&amp;gt;, and &amp;lt;where-clause&amp;gt; options. The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;useother&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;option specifies whether to merge all of the series not included in the results table into a single new series. If&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;useother=true, the label for the series is controlled by the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;otherstr&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;option.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Default:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;true&lt;/P&gt;&lt;P&gt;If not I can write an RFE &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Julien&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jan 2024 09:41:18 GMT</pubDate>
    <dc:creator>jegron</dc:creator>
    <dc:date>2024-01-15T09:41:18Z</dc:date>
    <item>
      <title>Top 10 Values Timeseries with Additional 'Other' Aggregate Category</title>
      <link>https://community.dynatrace.com/t5/DQL/Top-10-Values-Timeseries-with-Additional-Other-Aggregate/m-p/234033#M544</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like&amp;nbsp;&lt;SPAN&gt;to construct a timeseries that includes a set number of the highest values, plus an additional aggregated category named 'Other.' This 'Other' category should represent the sum of all the remaining values not included in the set limit of highest values :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CountbyIP.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16749iBC8F91478A68C3F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CountbyIP.png" alt="CountbyIP.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I do that ?&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;fetch logs&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| makeTimeseries count(default:0), by:{src_ip}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| limit 10&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Julien&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 14:33:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Top-10-Values-Timeseries-with-Additional-Other-Aggregate/m-p/234033#M544</guid>
      <dc:creator>jegron</dc:creator>
      <dc:date>2024-01-11T14:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10 Values Timeseries with Additional 'Other' Aggregate Category</title>
      <link>https://community.dynatrace.com/t5/DQL/Top-10-Values-Timeseries-with-Additional-Other-Aggregate/m-p/234100#M549</link>
      <description>&lt;P&gt;After producing timeseries for all IPs&lt;BR /&gt;- you need to collect them in single array,&lt;BR /&gt;- sort it by chosen order (I selected sum of all value in timeseries as a ordering criteria, kept in &lt;STRONG&gt;&lt;EM&gt;o&lt;/EM&gt;&lt;/STRONG&gt; field of the record)&lt;BR /&gt;- remember the 10th value from the array in fields &lt;STRONG&gt;&lt;EM&gt;top&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;- expand and summarize again by srcaddr, but it will be replaced with "Other" word when value of &lt;STRONG&gt;&lt;EM&gt;o&lt;/EM&gt;&lt;/STRONG&gt; field is lower then remembered threshold (&lt;STRONG&gt;&lt;EM&gt;top&lt;/EM&gt;&lt;/STRONG&gt;)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs
| filter ipIn(srcaddr,"10.179.22.0/24")
| makeTimeseries {c=count()}, by:{srcaddr}, interval:5m

| summarize { d=collectArray( record(o=arraySum(c), srcaddr, c)) }, by:{timeframe, interval}
| fieldsAdd d=arraySort(d, direction:"descending" )
| fieldsAdd top=d[9][o]

| expand d
| fieldsAdd srcaddr = if( isTrueOrNull(d[o]&amp;gt;=top), d[srcaddr], else:"Other")
| summarize c=sum(d[c][]), by:{srcaddr, timeframe, interval}&lt;/LI-CODE&gt;&lt;P&gt;Just note: this can give you more then 10 top timeseries if 11th element has the same value of &lt;STRONG&gt;&lt;EM&gt;o&lt;/EM&gt;&lt;/STRONG&gt; as 10th, etc....&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_0-1705003497778.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16770i2D64339018D4D818/image-size/medium?v=v2&amp;amp;px=400" role="button" title="krzysztof_hoja_0-1705003497778.png" alt="krzysztof_hoja_0-1705003497778.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 20:05:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Top-10-Values-Timeseries-with-Additional-Other-Aggregate/m-p/234100#M549</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2024-01-11T20:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10 Values Timeseries with Additional 'Other' Aggregate Category</title>
      <link>https://community.dynatrace.com/t5/DQL/Top-10-Values-Timeseries-with-Additional-Other-Aggregate/m-p/234308#M562</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jegron_1-1705310933545.png" style="width: 541px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16820i4352A402E793FEBC/image-dimensions/541x268?v=v2" width="541" height="268" role="button" title="jegron_1-1705310933545.png" alt="jegron_1-1705310933545.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I don't understand why there is the "C" value here. What does it mean ?&lt;/P&gt;&lt;P&gt;Also Does Dynatrace plan to release an "useother" option for Timeseries like competitor?&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Syntax:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;useother=&amp;lt;bool&amp;gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Description:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;You specify which series to include in the results table by using the &amp;lt;agg&amp;gt;, &amp;lt;limit&amp;gt;, and &amp;lt;where-clause&amp;gt; options. The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;useother&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;option specifies whether to merge all of the series not included in the results table into a single new series. If&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;useother=true, the label for the series is controlled by the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;otherstr&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;option.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Default:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;true&lt;/P&gt;&lt;P&gt;If not I can write an RFE &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Julien&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 09:41:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Top-10-Values-Timeseries-with-Additional-Other-Aggregate/m-p/234308#M562</guid>
      <dc:creator>jegron</dc:creator>
      <dc:date>2024-01-15T09:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10 Values Timeseries with Additional 'Other' Aggregate Category</title>
      <link>https://community.dynatrace.com/t5/DQL/Top-10-Values-Timeseries-with-Additional-Other-Aggregate/m-p/234555#M564</link>
      <description>&lt;P&gt;Apparently there are record where&amp;nbsp;srcaddr is null. When the dimension (name of timeseries) is null, the timeseries field name (&lt;EM&gt;&lt;STRONG&gt;c&lt;/STRONG&gt;&lt;/EM&gt;) is used in chart legend. To confirm this, you can display your data in form of table or record list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I agree with you that 'useother' option would be very useful. Moreover such extension would be needed not only as a part makeTimeseries, but also as a part of timeseries for out native metrics. Please go ahead with RFE.&lt;BR /&gt;On the other side, DQL is flexible and powerful enough so such data manipulations are possible before implementation of specialized features happens.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 07:27:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Top-10-Values-Timeseries-with-Additional-Other-Aggregate/m-p/234555#M564</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2024-01-17T07:27:13Z</dc:date>
    </item>
  </channel>
</rss>

