# DQL for Successful vs Failed Product Transfers by brand (Logs on Grail vs Classic)

**URL:** <https://community.dynatrace.com/t/dql-for-successful-vs-failed-product-transfers-by-brand-logs-on-grail-vs-classic/54312>\
**Category:** DQL\
**Tags:** dql, dynatrace-managed, logs\
**Created:** [December 5, 2025, 1:23pm UTC](https://community.dynatrace.com/t/dql-for-successful-vs-failed-product-transfers-by-brand-logs-on-grail-vs-classic/54312 "2025-12-05T13:23:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arunshetty2281](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@arunshetty2281](https://community.dynatrace.com/u/arunshetty2281)\
**Post date:** [December 5, 2025, 1:23pm UTC](https://community.dynatrace.com/t/dql-for-successful-vs-failed-product-transfers-by-brand-logs-on-grail-vs-classic/54312/1 "2025-12-05T13:23:52Z")

</div>

We need to chart Successful vs Failed requests per brand from application logs. The brands are logged in the message body (JSON fragments like “brand”:“Bradford”), and success is indicated by “offerAccepted”:“Y”. This is the example output below — it should look like this:

 ![DesiredOUTPUT.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/51836840be1520c5330a5ae4d7cf53f37a3046cc.png)

In Grail/DQL, we can parse and aggregate in a single query. In Logs & Events Classic, we understand aggregation requires Log Processing + Log Metrics rather than inline summarize. I’d like to confirm the best practice for both, and validate the parse/aggregation approach. (Docs I’ve consulted: DQL matcher & parsing, aggregation commands, and Classic Log Monitoring guidance.)

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [December 6, 2025, 10:03pm UTC](https://community.dynatrace.com/t/dql-for-successful-vs-failed-product-transfers-by-brand-logs-on-grail-vs-classic/54312/2 "2025-12-06T22:03:30Z")

</div>

Hi&nbsp;[@arunshetty2281](https://community.dynatrace.com/user/95565)

Regarding the Log Classic I can confirm that first you should parse out the brand and offerAccepted by log processing, then you can generate a log attribute from them. Finally you should create a log metric (count of occurance) and use this log attributes as dimension of this metric. Then you can create a table in the data explorer from the log metric split by these two dimensions:&nbsp; first entity selector split by the two dimensions the filter to offerAccepted dimension with Y and the second entity selector should be the same but filter to offerAccepted dimension with N.

I hope it helps.

Best regards,

János

---

<div class="post-metadata">

**Author:** ![arunshetty2281](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@arunshetty2281](https://community.dynatrace.com/u/arunshetty2281)\
**Post date:** [March 4, 2026, 12:13pm UTC](https://community.dynatrace.com/t/dql-for-successful-vs-failed-product-transfers-by-brand-logs-on-grail-vs-classic/54312/3 "2026-03-04T12:13:44Z")

</div>

Thanks for the solution. I will try that
