cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Use Of Regex In DQL

abhay-ramekar
Newcomer

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.

1 REPLY 1

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

!!! Dynatrace !!!

Featured Posts