# Format and Phrase Content Effectively Using DQL

**URL:** <https://community.dynatrace.com/t/format-and-phrase-content-effectively-using-dql/54216>\
**Category:** DQL\
**Tags:** dql, logs\
**Created:** [November 26, 2025, 5:13pm UTC](https://community.dynatrace.com/t/format-and-phrase-content-effectively-using-dql/54216 "2025-11-26T17:13:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikas\_g1997](https://avatars.discourse-cdn.com/v4/letter/v/b3f665/32.png) [@Vikas\_g1997](https://community.dynatrace.com/u/Vikas_g1997)\
**Post date:** [November 26, 2025, 5:13pm UTC](https://community.dynatrace.com/t/format-and-phrase-content-effectively-using-dql/54216/1 "2025-11-26T17:13:41Z")

</div>

**Hi Team,**

Could you please help me parse the following log content to extract these fields:  
“level”, “message”:“%msg”, “transactionId”, “requestId”, “referer”, “exception”

**Log Content:**

```auto
[26/Nov/2025:23:55:59 +0650] c.h.d.f.RequestTracingFilter [dw-1836 - GET /v1/users/648ceb50-8b21-48d5-97d4-b790011bce8f] INFO [Txn-0aa3cd6d-9d57-44ba-b2e2-33f58133ec40 - Req-859b96fc-8eb6-4cf4-834f-86c264c72a29] - [Referer-tyk-api-gateway,komodo-service] - RequestTracingFilter Current Transaction Id : Txn-0aa3cd6d-9d57-44ba-b2e2-33f58133ec40, Parent Transaction Id : PTxn-b733e9f3-52e5-4a60-bb97-332357594f96 NR-LINKING|MTMyMDIxMnxBUE18QVBQTElDQVRJT058OTMxMDIzMjM2|logan-prod-blue-7b69c986bd-zqhhg|57669505d4e64d4133e667eb1997dbe7|c79a77827947fbdb|bali-logan-prod|

```

Please let me know the best approach to achieve this in **DQL**.

**Regards,**  
Vikas A. Goud

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [November 26, 2025, 5:18pm UTC](https://community.dynatrace.com/t/format-and-phrase-content-effectively-using-dql/54216/2 "2025-11-26T17:18:31Z")

</div>

Hi,

Easier way would be using [DPL Architect](https://docs.dynatrace.com/docs/shortlink/dpl-architect).

Best regards

---

<div class="post-metadata">

**Author:** ![mark\_bley](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mark_bley/32/20954_2.png) [@mark\_bley](https://community.dynatrace.com/u/mark_bley)\
**Post date:** [November 27, 2025, 8:54pm UTC](https://community.dynatrace.com/t/format-and-phrase-content-effectively-using-dql/54216/3 "2025-11-27T20:54:06Z")

</div>

not sure what exact value you expect from the fields you mention but maybe this helps put a bit:

```markup
data record(content="[26/Nov/2025:23:55:59 +0650] c.h.d.f.RequestTracingFilter [dw-1836 - GET /v1/users/648ceb50-8b21-48d5-97d4-b790011bce8f] INFO [Txn-0aa3cd6d-9d57-44ba-b2e2-33f58133ec40 - Req-859b96fc-8eb6-4cf4-834f-86c264c72a29] - [Referer-tyk-api-gateway,komodo-service] - RequestTracingFilter Current Transaction Id : Txn-0aa3cd6d-9d57-44ba-b2e2-33f58133ec40, Parent Transaction Id : PTxn-b733e9f3-52e5-4a60-bb97-332357594f96 NR-LINKING|MTMyMDIxMnxBUE18QVBQTElDQVRJT058OTMxMDIzMjM2|logan-prod-blue-7b69c986bd-zqhhg|57669505d4e64d4133e667eb1997dbe7|c79a77827947fbdb|bali-logan-prod|")
| parse content, """LD '] ' STRING ' [' LD '] ' STRING:level ' [' LD:transaction_id ' - ' LD:req_id '] - [' LD:referer '] - ' LD:message"""

```

 ![mark_bley_0-1764276800865.png](https://global.discourse-cdn.com/dynatrace/original/2X/6/6fc2130ebfa4e3d49ddf808fdfce45ed3a0d87ee.png)
