<?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 for sum of MSG content in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Calculate-Sum-of-MSG-Content-Using-DQL-Queries/m-p/290511#M2832</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/57336"&gt;@Vikas_g1997&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can retrieve the number of logs that contain both the specific message text and the service name by filtering on the content field, which holds the raw log body for your ingestion pipeline.&lt;BR /&gt;Here is the DQL query that will give you the correct count:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs
| filter matchesValue(content, "*instantiating container sampler process decorator*")
  AND matchesValue(content, "*timor-fulfilment-service*")
| summarize count = count()&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 28 Nov 2025 15:23:59 GMT</pubDate>
    <dc:creator>t_pawlak</dc:creator>
    <dc:date>2025-11-28T15:23:59Z</dc:date>
    <item>
      <title>Calculate Sum of MSG Content Using DQL Queries</title>
      <link>https://community.dynatrace.com/t5/DQL/Calculate-Sum-of-MSG-Content-Using-DQL-Queries/m-p/290411#M2831</link>
      <description>&lt;DIV&gt;
&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;We are trying to display the &lt;STRONG&gt;number of logs&lt;/STRONG&gt; that contain a specific message and service name.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Message:&lt;/STRONG&gt; instantiating container sampler process decorator&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Service Name:&lt;/STRONG&gt; timor-fulfilment-service&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Below is a sample of the ingested content for reference:&lt;/P&gt;
&lt;PRE&gt;time="2025-11-27T13:25:38Z" level=warning msg="instantiating container sampler process decorator" component=ProcessSampler error="containerd sampler: no running task found: task 58654b36c6b3525aabf06ed00a341bc3d7073cd03a9e7be5e282ed3b64b5617e not found: not found"

[27/Nov/2025:20:27:20 +0120] o.a.h.c.p.ResponseProcessCookies [providers-executor-service] WARN [Txn-53984749-ea37-4f22-9905-751f43fcbeb5 - Req-ee48a749-e368-4821-9a7f-fac6ef5e2c18] - [Referer-tyk-api-gateway,timor-fulfilment-service] - Invalid cookie header: "Set-Cookie: AWSALBCORS=shSBcB3Lcxk69XOUUXqCpTl/PQGtLa7/cMKR4A2qgYw5hmgDDYOOxLcczdSnQ6yH9wxKjfmdSYcsgKHka6fs0l9qh/jKa1apROe3yzYjw9ooMGRAgdtK8BDVDl9F; Expires=Thu, 04 Dec 2025 13:27:19 GMT; Path=/; SameSite=None". Invalid 'expires' attribute: Thu, 04 Dec 2025 13:27:19 GMT NR-LINKING|MTMyMDIxMnxBUE18QVBQTElDQVRJT058MTU4NzA4MTM4Nw|delivery-system-prod-blue-78bf55f895-q4vdj|202845d71cbf751e6a4f51784744b8cc|ca0310833f3e789a|transformer-delivery-system-prod|&lt;/PRE&gt;
&lt;P&gt;Could you please help us with a &lt;STRONG&gt;query&lt;/STRONG&gt; to fetch logs based on the above criteria?&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Vikas&lt;/P&gt;
&lt;P&gt;Ex:- Output required&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vikas_g1997_0-1764261658601.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/31035iDF6B5A0306B98C73/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vikas_g1997_0-1764261658601.png" alt="Vikas_g1997_0-1764261658601.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 12:17:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Calculate-Sum-of-MSG-Content-Using-DQL-Queries/m-p/290411#M2831</guid>
      <dc:creator>Vikas_g1997</dc:creator>
      <dc:date>2025-12-17T12:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: DQL for sum of MSG content</title>
      <link>https://community.dynatrace.com/t5/DQL/Calculate-Sum-of-MSG-Content-Using-DQL-Queries/m-p/290511#M2832</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/57336"&gt;@Vikas_g1997&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can retrieve the number of logs that contain both the specific message text and the service name by filtering on the content field, which holds the raw log body for your ingestion pipeline.&lt;BR /&gt;Here is the DQL query that will give you the correct count:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs
| filter matchesValue(content, "*instantiating container sampler process decorator*")
  AND matchesValue(content, "*timor-fulfilment-service*")
| summarize count = count()&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 28 Nov 2025 15:23:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Calculate-Sum-of-MSG-Content-Using-DQL-Queries/m-p/290511#M2832</guid>
      <dc:creator>t_pawlak</dc:creator>
      <dc:date>2025-11-28T15:23:59Z</dc:date>
    </item>
  </channel>
</rss>

