<?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: DQL makeTimeseries by multiple filters and dimensions in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/DQL-makeTimeseries-by-multiple-filters-and-dimensions/m-p/244971#M857</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/72018"&gt;@zip-chanko&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It all depends on the format of the data and what it looks like. Can you provide some screenshot of your data?&lt;/P&gt;&lt;P&gt;Generally, sure, you can add multiple variables to split by “by:{}”. In that way you can add more dimensions to your timeseries.&lt;/P&gt;&lt;P&gt;If you want to make multiple timeseries in one chart you always can use “append” statement after makeTimeseries. Like in your example: if you have numbers of 2xx, 4xx, 5xx in separated columns you can create chart by appending three makeTimeseries. And if you want sum of all these the solution is the same, you can create new column with sum of these values and by append add new timeseries to your query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bests&lt;/P&gt;&lt;P&gt;Michal&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2024 08:09:31 GMT</pubDate>
    <dc:creator>MichalOlszewski</dc:creator>
    <dc:date>2024-05-07T08:09:31Z</dc:date>
    <item>
      <title>DQL makeTimeseries by multiple filters and dimensions</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-makeTimeseries-by-multiple-filters-and-dimensions/m-p/244157#M837</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Is there a way to use the&amp;nbsp;makeTimeseries function which splits the graph by multiple filters.&lt;/P&gt;
&lt;P&gt;For example, I have logs with attribute httpstatus which shows 2xx, 4xx, 5xx, etc.&lt;/P&gt;
&lt;P&gt;I would like to see the graph splits into three dimensions. (total, 200 and non-200).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 06:40:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-makeTimeseries-by-multiple-filters-and-dimensions/m-p/244157#M837</guid>
      <dc:creator>zip-chanko</dc:creator>
      <dc:date>2024-05-08T06:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: DQL makeTimeseries by multiple filters and dimensions</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-makeTimeseries-by-multiple-filters-and-dimensions/m-p/244971#M857</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/72018"&gt;@zip-chanko&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It all depends on the format of the data and what it looks like. Can you provide some screenshot of your data?&lt;/P&gt;&lt;P&gt;Generally, sure, you can add multiple variables to split by “by:{}”. In that way you can add more dimensions to your timeseries.&lt;/P&gt;&lt;P&gt;If you want to make multiple timeseries in one chart you always can use “append” statement after makeTimeseries. Like in your example: if you have numbers of 2xx, 4xx, 5xx in separated columns you can create chart by appending three makeTimeseries. And if you want sum of all these the solution is the same, you can create new column with sum of these values and by append add new timeseries to your query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bests&lt;/P&gt;&lt;P&gt;Michal&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 08:09:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-makeTimeseries-by-multiple-filters-and-dimensions/m-p/244971#M857</guid>
      <dc:creator>MichalOlszewski</dc:creator>
      <dc:date>2024-05-07T08:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: DQL makeTimeseries by multiple filters and dimensions</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-makeTimeseries-by-multiple-filters-and-dimensions/m-p/244986#M859</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/51714"&gt;@MichalOlszewski&lt;/a&gt;&amp;nbsp;, thank you for your reply. Please refer the below example data which I am trying to achieve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;data record(host = "example.com", http_status = "200"),
record(host = "example.com", http_status = "200"),
record(host = "example.com", http_status = "200"),
record(host = "example.com", http_status = "301"),
record(host = "example.com", http_status = "403"),
record(host = "example.com", http_status = "403"),
record(host = "example.com", http_status = "502"),
record(host = "example.com", http_status = "502"),
record(host = "example.com", http_status = "200"),
record(host = "example.com", http_status = "200"),
record(host = "example.com", http_status = "200")
| fieldsAdd httpstatus = toLong(http_status)
| fieldsRemove http_status
| makeTimeseries total = count()
| makeTimeseries 2xx = count(), by:{httpstatus == 200 and httpstatus == 201}
| makeTimeseries 4xx = count(), by:{httpstatus &amp;gt;= 400 and httpstatus &amp;lt; 500}
| makeTimeseries 5xx = count(), by:{httpstatus &amp;gt; 500}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 10:46:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-makeTimeseries-by-multiple-filters-and-dimensions/m-p/244986#M859</guid>
      <dc:creator>zip-chanko</dc:creator>
      <dc:date>2024-05-07T10:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: DQL makeTimeseries by multiple filters and dimensions</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-makeTimeseries-by-multiple-filters-and-dimensions/m-p/245025#M861</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/72018"&gt;@zip-chanko&lt;/a&gt;,&lt;BR /&gt;Your example data is missing timestamps for a timeseries, so I added it. The result should look something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;data record(host = "example.com", http_status = "200", timestamp="2024-05-07T12:00:00.0-05:00" ),
record(host = "example.com", http_status = "200", timestamp="2024-05-07T12:01:00.0-05:00"),
record(host = "example.com", http_status = "200", timestamp="2024-05-07T12:02:00.0-05:00"),
record(host = "example.com", http_status = "301", timestamp="2024-05-07T12:03:39.0-05:00"),
record(host = "example.com", http_status = "403", timestamp="2024-05-07T12:04:40.0-05:00"),
record(host = "example.com", http_status = "403", timestamp="2024-05-07T12:05:41.0-05:00"),
record(host = "example.com", http_status = "502", timestamp="2024-05-07T12:06:42.0-05:00"),
record(host = "example.com", http_status = "200", timestamp="2024-05-07T12:01:00.0-05:00"),
record(host = "example.com", http_status = "200", timestamp="2024-05-07T12:02:00.0-05:00"),
record(host = "example.com", http_status = "301", timestamp="2024-05-07T12:03:39.0-05:00"),
record(host = "example.com", http_status = "403", timestamp="2024-05-07T12:04:40.0-05:00"),
record(host = "example.com", http_status = "200", timestamp="2024-05-07T12:02:00.0-05:00"),
record(host = "example.com", http_status = "301", timestamp="2024-05-07T12:03:39.0-05:00"),
record(host = "example.com", http_status = "403", timestamp="2024-05-07T12:04:40.0-05:00"),
record(host = "example.com", http_status = "403", timestamp="2024-05-07T12:05:41.0-05:00"),
record(host = "example.com", http_status = "502", timestamp="2024-05-07T12:06:42.0-05:00"),
record(host = "example.com", http_status = "502", timestamp="2024-05-07T12:07:43.0-05:00"),
record(host = "example.com", http_status = "200", timestamp="2024-05-07T12:08:44.0-05:00"),
record(host = "example.com", http_status = "200", timestamp="2024-05-07T12:09:45.0-05:00"),
record(host = "example.com", http_status = "200", timestamp="2024-05-07T12:10:46.0-05:00")
| fieldsAdd httpstatus = toLong(http_status)
| fieldsRemove http_status
| makeTimeseries {
      total=count(),
      http_2xx = countIf(httpstatus == 200 and httpstatus == 201),
      http_4xx = countIf(httpstatus &amp;gt;= 400 and httpstatus &amp;lt; 500),
      http_5xx = countIf(httpstatus &amp;gt; 500)
    },
    by: {}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Eric_Yu_0-1715102505419.png" style="width: 778px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/19698i3F6D1F20BCB493FC/image-dimensions/778x352?v=v2" width="778" height="352" role="button" title="Eric_Yu_0-1715102505419.png" alt="Eric_Yu_0-1715102505419.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 17:24:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-makeTimeseries-by-multiple-filters-and-dimensions/m-p/245025#M861</guid>
      <dc:creator>Eric_Yu</dc:creator>
      <dc:date>2024-05-07T17:24:04Z</dc:date>
    </item>
  </channel>
</rss>

