# DPL extract single value and compare

**URL:** <https://community.dynatrace.com/t/dpl-extract-single-value-and-compare/52558>\
**Category:** DQL\
**Tags:** dql, dashboards, dpl\
**Created:** [July 20, 2025, 10:01am UTC](https://community.dynatrace.com/t/dpl-extract-single-value-and-compare/52558 "2025-07-20T10:01:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![almog50](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@almog50](https://community.dynatrace.com/u/almog50)\
**Post date:** [July 20, 2025, 10:01am UTC](https://community.dynatrace.com/t/dpl-extract-single-value-and-compare/52558/1 "2025-07-20T10:01:56Z")

</div>

Hi,

I have the following content:

```markup
2025-07-20T06:00:38.027Z INFO 1 --- [db-monitor] [main] c.d.i.d.util.DbMonitorCommandLineRunner : Outbox monitor results for destination sql - SELECT COUNT(DISTINCT product_id) FROM landing.pension_operations_events_streams WHERE TO_TIMESTAMP(headers_timestamp, 'DY MON DD HH24:MI:SS TZD YYYY')::date = CURRENT_DATE GROUP BY ALL : [{COUNT(DISTINCT PRODUCT_ID)=0}]

```

and

```markup
2025-07-20T06:00:38.025Z INFO 1 --- [db-monitor] [main] c.d.i.d.util.DbMonitorCommandLineRunner : Outbox monitor results for source sql - SELECT COUNT(*) FROM product p WHERE p.updated_at::date = CURRENT_DATE : [{count=0}]

```

I want to be able to comapre [{COUNT(DISTINCT PRODUCT\_ID)=0}] and [{count=0}]  
and if those values are not equal, show a red icon in a dashboard or something like that.

---

<div class="post-metadata">

**Author:** ![Emm4nuel](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@Emm4nuel](https://community.dynatrace.com/u/Emm4nuel)\
**Post date:** [July 21, 2025, 4:17pm UTC](https://community.dynatrace.com/t/dpl-extract-single-value-and-compare/52558/2 "2025-07-21T16:17:36Z")

</div>

I’m not sure what is the context where you want to apply this, but at least I’ll provide you the parse sentence to extraxt the value you want to compare:

```javascript
data record(content = "2025-07-20T06:00:38.027Z INFO 1 --- [db-monitor] [main] c.d.i.d.util.DbMonitorCommandLineRunner : Outbox monitor results for destination sql - SELECT COUNT(DISTINCT product_id) FROM landing.pension_operations_events_streams WHERE TO_TIMESTAMP(headers_timestamp, 'DY MON DD HH24:MI:SS TZD YYYY')::date = CURRENT_DATE GROUP BY ALL : [{COUNT(DISTINCT PRODUCT_ID)=0}]"), 
record(content = "This is a string with UUID: --2025-07-20T06:00:38.025Z INFO 1 --- [db-monitor] [main] c.d.i.d.util.DbMonitorCommandLineRunner : Outbox monitor results for source sql - SELECT COUNT(*) FROM product p WHERE p.updated_at::date = CURRENT_DATE : [{count=0}]")
| parse content, """LD '::date' LD ':' ld '[' LD:data ']'"""

```

PARSE:&nbsp;| parse content, “”“LD ‘::date’ LD ‘:’ ld ‘[’ LD:data ‘]’”“”
