# DQL Parsing on logs

**URL:** <https://community.dynatrace.com/t/dql-parsing-on-logs/40539>\
**Category:** DQL\
**Tags:** dql\
**Created:** [July 5, 2023, 9:21pm UTC](https://community.dynatrace.com/t/dql-parsing-on-logs/40539 "2023-07-05T21:21:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jordanb](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@jordanb](https://community.dynatrace.com/u/jordanb)\
**Post date:** [July 5, 2023, 9:21pm UTC](https://community.dynatrace.com/t/dql-parsing-on-logs/40539/1 "2023-07-05T21:21:00Z")

</div>

We are currently trying to use the parse feature in DQL to parse out paths that end in different integers. The current format is V + an integer. How can we make it so we do not have to hardcode every possible version such as v9/start/order or v8/start/order/ In its current form, it only works for v10. Thanks!

We are using "| parse RequestedPath, “DATA ‘v10’ LD:path2"”

---

<div class="post-metadata">

**Author:** ![sinisa\_zubic](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sinisa_zubic/32/32498_2.png) [@sinisa\_zubic](https://community.dynatrace.com/u/sinisa_zubic)\
**Post date:** [July 5, 2023, 9:31pm UTC](https://community.dynatrace.com/t/dql-parsing-on-logs/40539/2 "2023-07-05T21:31:55Z")

</div>

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

You can use DPL macros to achieve this.

This DPL should work for your use case

```markup
| parse RequestPath, 
  """$version = 'v' int;
  LD $version LD:path
  """

```

Please have a look at pattern expression macros for further details:&nbsp;[DPL Pattern Expression Macros — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/dpl-pattern-expression-macros)

Best,  
Sini
