18 Aug 2025 02:59 PM
Hello All,
I would like to use regex in dql, please guide me on this.
Below is my use case - If I want to use this below regex in DQL tp create alert or dashboard how can I achieve it.
1. | rex field=_raw ""PONumber(?<PONumber>.*)""
Thanks.
Solved! Go to Solution.
18 Aug 2025 05:31 PM
Hi @abhay-ramekar ,
You cannot use regex in DQL, but you can use DPL, which replaces regex and does the job more easily.
https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-pattern-language
If you share a dummy log may be we can help to build a query based on DPL.
regards,
Akhil Jayendran