# \#regex

**URL:** https://community.dynatrace.com/tag/regex/719.md

[Latest](https://community.dynatrace.com/latest.md) · [Categories](https://community.dynatrace.com/categories.md) · [Tags](https://community.dynatrace.com/tags.md)

---

## [Regular Expressions and Auto Tags](https://community.dynatrace.com/t/regular-expressions-and-auto-tags/53398)

<div class="topic-metadata">

**Author:** [@bill\_scheuernst](https://community.dynatrace.com/u/bill_scheuernst)\
**Replies:** 1\
**Last updated:** [August 21, 2026, 1:43pm UTC](https://community.dynatrace.com/t/regular-expressions-and-auto-tags/53398 "2026-08-21T13:43:58Z")

</div>

I am working on an Auto Tag rule for custom devices using a regular expression statement which for the most part is successful. I am seeing though where the tag key gets duplicated, with either no value, or a value whic…

---

## [How to automatically set tag value based on regex](https://community.dynatrace.com/t/how-to-automatically-set-tag-value-based-on-regex/56094)

<div class="topic-metadata">

**Author:** [@macotech](https://community.dynatrace.com/u/macotech)\
**Replies:** 4\
**Last updated:** [June 4, 2026, 2:08pm UTC](https://community.dynatrace.com/t/how-to-automatically-set-tag-value-based-on-regex/56094 "2026-06-04T14:08:53Z")

</div>

Our server names follow a naming convention : 4 letters company + 4 letters for the location (I simplified). What I am trying to do is to have a tag being automatically created for each server containing its location. Th…

---

## [PRO TIP - Global request naming for REST services](https://community.dynatrace.com/t/pro-tip-global-request-naming-for-rest-services/33356)

<div class="topic-metadata">

**Author:** [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Replies:** 10\
**Last updated:** [May 22, 2026, 6:31am UTC](https://community.dynatrace.com/t/pro-tip-global-request-naming-for-rest-services/33356 "2026-05-22T06:31:05Z")

</div>

Dynatrace does a pretty good job at request naming for common frameworks. Unfortunately, for some generic REST services, it may require request naming rules or URL cleanup rules, so requests are properly identified. For…

---

## [Regex/Parsing logic to extract nested or repeating patterns from a specific data record format](https://community.dynatrace.com/t/regex-parsing-logic-to-extract-nested-or-repeating-patterns-from-a-specific-data-record-format/55476)

<div class="topic-metadata">

**Author:** [@TrunksGr](https://community.dynatrace.com/u/TrunksGr)\
**Replies:** 1\
**Last updated:** [April 6, 2026, 6:27am UTC](https://community.dynatrace.com/t/regex-parsing-logic-to-extract-nested-or-repeating-patterns-from-a-specific-data-record-format/55476 "2026-04-06T06:27:58Z")

</div>

I am looking for a way to extract specific substrings from a data record. I need to retrieve all values associated with the key Valuethat are contained inside the value="..." attribute of a data record. data record(cont…

---

## [Using regex for a path](https://community.dynatrace.com/t/using-regex-for-a-path/54972)

<div class="topic-metadata">

**Author:** [@nisah](https://community.dynatrace.com/u/nisah)\
**Replies:** 5\
**Last updated:** [February 13, 2026, 6:51pm UTC](https://community.dynatrace.com/t/using-regex-for-a-path/54972 "2026-02-13T18:51:59Z")

</div>

Hi - I had the below regex working fine in a workflow “| filter matchesRegex(lower(cicd.pipeline.url.full),”.\*/\\\\.github/workflows/.\*(ci|standard).\*\\\\.ya?ml$“)” Now i’m getting the below error for the same. Is there …

---

## [Regex for Hostname](https://community.dynatrace.com/t/regex-for-hostname/53501)

<div class="topic-metadata">

**Author:** [@bill\_scheuernst](https://community.dynatrace.com/u/bill_scheuernst)\
**Replies:** 2\
**Last updated:** [September 25, 2025, 8:00am UTC](https://community.dynatrace.com/t/regex-for-hostname/53501 "2025-09-25T08:00:08Z")

</div>

I’ve been working on updating our automatic tag rules for a current project and would like to use Regex to capture a device type from a dns name, i.e. ABCCORE01.TEST.COM. The ABC prefix is the location of the device, an…

---

## [entity selector with regex](https://community.dynatrace.com/t/entity-selector-with-regex/45834)

<div class="topic-metadata">

**Author:** [@David\_Guillen](https://community.dynatrace.com/u/David_Guillen)\
**Replies:** 3\
**Last updated:** [September 24, 2025, 7:43pm UTC](https://community.dynatrace.com/t/entity-selector-with-regex/45834 "2025-09-24T19:43:55Z")

</div>

Hi I create automaticaly tags with entity selector and my question is if i can use the regex in the entity selector. I have this type(CLOUD\_APPLICATION\_NAMESPACE),toRelationships.isClusterOfNamespace(type(KUBERNETES\_CL…

---

## [Regex - excluding one title from Alerting profile](https://community.dynatrace.com/t/regex-excluding-one-title-from-alerting-profile/53001)

<div class="topic-metadata">

**Author:** [@Vijayt](https://community.dynatrace.com/u/Vijayt)\
**Replies:** 2\
**Last updated:** [August 18, 2025, 5:59pm UTC](https://community.dynatrace.com/t/regex-excluding-one-title-from-alerting-profile/53001 "2025-08-18T17:59:10Z")

</div>

i am trying to exclude one title from alerting profile title : space in /oracle in abc\_dwh server i want to exclude oracle\*\_dwh \[oracle error from \*\_dwh\] servers using contains regex oracle\*\_dwh not throwing error but…

---

## [Pro Tip - Using Regex for Dynamic Tagging](https://community.dynatrace.com/t/pro-tip-using-regex-for-dynamic-tagging/31958)

<div class="topic-metadata">

**Author:** [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Replies:** 14\
**Last updated:** [August 11, 2025, 9:04pm UTC](https://community.dynatrace.com/t/pro-tip-using-regex-for-dynamic-tagging/31958 "2025-08-11T21:04:09Z")

</div>

Depending on the size of your environment, odds are you are using automatic tagging. Automatic tagging is great but also can have its downfalls. Over the last several updates, Dynatrace has increased the functionality of…

---

## [Apply Regex on Custom Metric Series Using DQL](https://community.dynatrace.com/t/apply-regex-on-custom-metric-series-using-dql/49374)

<div class="topic-metadata">

**Author:** [@NitinOjha003](https://community.dynatrace.com/u/NitinOjha003)\
**Replies:** 2\
**Last updated:** [May 16, 2025, 9:46pm UTC](https://community.dynatrace.com/t/apply-regex-on-custom-metric-series-using-dql/49374 "2025-05-16T21:46:53Z")

</div>

We are pushing out metrics through Otel into both Newrelic and Dynatrace. We are in process of migrating out our application metric data from newrelic to dynatrace. In NRQL, we use these queries: 1. SELECT sum(\`sling.c…

---

## [Regex for custom log source](https://community.dynatrace.com/t/regex-for-custom-log-source/51393)

<div class="topic-metadata">

**Author:** [@Shal](https://community.dynatrace.com/u/Shal)\
**Replies:** 5\
**Last updated:** [May 5, 2025, 7:17am UTC](https://community.dynatrace.com/t/regex-for-custom-log-source/51393 "2025-05-05T07:17:12Z")

</div>

Hi Team, I am trying to add below log file in Custom log source D:\\xxx\\Apps\\BusSys\_UAT\_OC5\\xxx.BLT.BulkImportServerWS\\2025.4.24.1-mainBulkLoadTool-OC5\\logs\\2025-04-24\\log.txt The words highlighted in red change …

---

## [Parse logs to extract field by combined regex](https://community.dynatrace.com/t/parse-logs-to-extract-field-by-combined-regex/51462)

<div class="topic-metadata">

**Author:** [@ArtemR](https://community.dynatrace.com/u/ArtemR)\
**Replies:** 2\
**Last updated:** [May 2, 2025, 1:03pm UTC](https://community.dynatrace.com/t/parse-logs-to-extract-field-by-combined-regex/51462 "2025-05-02T13:03:31Z")

</div>

Hi, Community!Could you please help with field extraction?I have entry like below and need to extract MDCID=D8227-6494143177361398674 to the separate field data record(content = "-2025-05-01 23:02:58.960 INFO MDCID=D822…

---

## [SNMP Extension 2.0 Regex OID](https://community.dynatrace.com/t/snmp-extension-2-0-regex-oid/45339)

<div class="topic-metadata">

**Author:** [@NicoloB](https://community.dynatrace.com/u/NicoloB)\
**Replies:** 3\
**Last updated:** [April 21, 2025, 6:22pm UTC](https://community.dynatrace.com/t/snmp-extension-2-0-regex-oid/45339 "2025-04-21T18:22:29Z")

</div>

Hi, I have a list of devices that end with the oid : Es. 2606.7.4.1.2.1.3.1 = Device12606.7.4.1.2.1.3.2 = Device22606.7.4.1.2.1.3.3 = Device3 the last number of oid is the index of the device. (colored red) I need …

---

## [PRO TIP - Global request naming for REST services on STEROIDS](https://community.dynatrace.com/t/pro-tip-global-request-naming-for-rest-services-on-steroids/49545)

<div class="topic-metadata">

**Author:** [@DynaWiz](https://community.dynatrace.com/u/DynaWiz)\
**Replies:** 3\
**Last updated:** [January 7, 2025, 3:39pm UTC](https://community.dynatrace.com/t/pro-tip-global-request-naming-for-rest-services-on-steroids/49545 "2025-01-07T15:39:30Z")

</div>

Referring to this article PRO TIP - Global request naming for REST services - Dynatrace Community I face with this problem a lot and I want to share my solution with you. This article is very good and explains a lot, but…

---

## [How to use regex with DQL?](https://community.dynatrace.com/t/how-to-use-regex-with-dql/48842)

<div class="topic-metadata">

**Author:** [@jegron](https://community.dynatrace.com/u/jegron)\
**Replies:** 1\
**Last updated:** [November 13, 2024, 12:51pm UTC](https://community.dynatrace.com/t/how-to-use-regex-with-dql/48842 "2024-11-13T12:51:04Z")

</div>

Hi, I’d like to build a complex regex in DQL. I can’t use the same syntax as OneAgent’s masking rule, so I tested the parse command: fetch logs | parse content, "DATA (\[:space:\]|\[:punct:\])(\[12\]\[0-9\]{2}\[0\]\[1-9\]\[0-9\]{2}\[…

---

## [Extract Text from Content Using REGEX in DQL Queries](https://community.dynatrace.com/t/extract-text-from-content-using-regex-in-dql-queries/48224)

<div class="topic-metadata">

**Author:** [@thanawat](https://community.dynatrace.com/u/thanawat)\
**Replies:** 4\
**Last updated:** [October 9, 2024, 8:16am UTC](https://community.dynatrace.com/t/extract-text-from-content-using-regex-in-dql-queries/48224 "2024-10-09T08:16:11Z")

</div>

I have this message “Exception org.springframework.web.servlet.resource.NoResourceFoundException”. I want to find the latest section of this message which is “NoResourceFoundException”. I prefer to find the text after …

---

## [Regexp for Url clean up](https://community.dynatrace.com/t/regexp-for-url-clean-up/45850)

<div class="topic-metadata">

**Author:** [@eamartn](https://community.dynatrace.com/u/eamartn)\
**Replies:** 1\
**Last updated:** [May 31, 2024, 1:20pm UTC](https://community.dynatrace.com/t/regexp-for-url-clean-up/45850 "2024-05-31T13:20:16Z")

</div>

Hi everyone, I would like to transform these type of URLs: /evt21\_nsei\_fe-web/api/terceros/451804672024?codCia=41&codLanguage=es\_ES&codActTerceroAcceso=1 in something like this: /evt21\_nsei\_fe-web/api/terceros/{param…

---

## [Use Regex in Dynatrace DQL Queries for Advanced Filtering](https://community.dynatrace.com/t/use-regex-in-dynatrace-dql-queries-for-advanced-filtering/45582)

<div class="topic-metadata">

**Author:** [@ppaulogustavoem](https://community.dynatrace.com/u/ppaulogustavoem)\
**Replies:** 1\
**Last updated:** [May 20, 2024, 11:40am UTC](https://community.dynatrace.com/t/use-regex-in-dynatrace-dql-queries-for-advanced-filtering/45582 "2024-05-20T11:40:33Z")

</div>

Summary: Dynatrace Query Language (DQL) supports regex for advanced filtering and pattern matching. This thread explains syntax, examples, and best practices for using regex in log and metric queries. Hey folks! DQL is…

---

## [Regex Assistance](https://community.dynatrace.com/t/regex-assistance/42515)

<div class="topic-metadata">

**Author:** [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Replies:** 5\
**Last updated:** [November 14, 2023, 5:06pm UTC](https://community.dynatrace.com/t/regex-assistance/42515 "2023-11-14T17:06:50Z")

</div>

Calling all regex Gurus! I’m trying to target the RxVisitor Value as a request attribute, what would be the best way to capture this? my current string ‘rxVisitor=(\[^\\-\]\*+)’ captures data even after the ‘;’ where the ta…

---

## [Cleanup Rule](https://community.dynatrace.com/t/cleanup-rule/41659)

<div class="topic-metadata">

**Author:** [@natanael\_mendes](https://community.dynatrace.com/u/natanael_mendes)\
**Replies:** 2\
**Last updated:** [September 17, 2023, 3:04am UTC](https://community.dynatrace.com/t/cleanup-rule/41659 "2023-09-17T03:04:26Z")

</div>

Hello Guys im having a problem with this regex i want to bring only CARLOS ALBERTO CAINO And i did this cleanup rule but the e-CPF and the numbers still showing up. How can i do this?

---

## [User Tag Regex Cleanup](https://community.dynatrace.com/t/user-tag-regex-cleanup/41653)

<div class="topic-metadata">

**Author:** [@natanael\_mendes](https://community.dynatrace.com/u/natanael_mendes)\
**Replies:** 9\
**Last updated:** [September 15, 2023, 6:54pm UTC](https://community.dynatrace.com/t/user-tag-regex-cleanup/41653 "2023-09-15T18:54:23Z")

</div>

Hello, i need help to make a regex \\n \\n \<strong\>e-CPF:\</strong\> LUIZ CLAUDIO GOMES DA SILVA - 279\\n \\n To output only LUIZ CLAUDIO GOMES DA SILVA

---

## [My web application](https://community.dynatrace.com/t/my-web-application/41204)

<div class="topic-metadata">

**Author:** [@Gerardo\_Fragoso](https://community.dynatrace.com/u/Gerardo_Fragoso)\
**Replies:** 1\
**Last updated:** [August 15, 2023, 1:06am UTC](https://community.dynatrace.com/t/my-web-application/41204 "2023-08-15T01:06:12Z")

</div>

What\`s mean " Input does not conform to pattern: context=Cookie value (Name:dtPC)10$\*\*\*\*\*\_674h-vUWPBHPSCHECTSOMHQARQRRARNWAMDPKA-0e0, pattern=^\[a-zA-Z0-9.!\\~\\|\\-\\/+=\_ :\\^\]\*$input=10$\*\*\*\*\*\_674h-vUWPBHPSCHECTSOMHQARQRRARNW…

---

## [DynaTrace \> User Session\> User tag Capturing \> Reg Ex](https://community.dynatrace.com/t/dynatrace-user-session-user-tag-capturing-reg-ex/41104)

<div class="topic-metadata">

**Author:** [@patelg6](https://community.dynatrace.com/u/patelg6)\
**Replies:** 3\
**Last updated:** [August 10, 2023, 1:08am UTC](https://community.dynatrace.com/t/dynatrace-user-session-user-tag-capturing-reg-ex/41104 "2023-08-10T01:08:22Z")

</div>

I am capturing string in format “Hello Mr. UserId DD:MM:YYYY” I want to apply Regex to filter out “UserId” only. It’s dynamic word. Please help me what regEx should I use? GAP

---

## [Optional tag value (automatic tag)](https://community.dynatrace.com/t/optional-tag-value-automatic-tag/40939)

<div class="topic-metadata">

**Author:** [@SWin](https://community.dynatrace.com/u/SWin)\
**Replies:** 4\
**Last updated:** [July 31, 2023, 12:46pm UTC](https://community.dynatrace.com/t/optional-tag-value-automatic-tag/40939 "2023-07-31T12:46:30Z")

</div>

Hi , is it possible to convert a regex result tag value on uppercase like { ProcessGroup:DetectedName/ \[ pattern on lowercase \] } to upper ( ) many thanks regards.

---

## [Regex in notification rules](https://community.dynatrace.com/t/regex-in-notification-rules/40555)

<div class="topic-metadata">

**Author:** [@chris\_oggeri](https://community.dynatrace.com/u/chris_oggeri)\
**Replies:** 1\
**Last updated:** [July 6, 2023, 4:23pm UTC](https://community.dynatrace.com/t/regex-in-notification-rules/40555 "2023-07-06T16:23:06Z")

</div>

Hello, To avoid creating as many alerting profiles/notification rules as there are use cases, we would like to have the ability to make regex on the available placeholders in the notification rules. For instance, for I…

---

## [Wild Card or REGEX in data explorer / custom event alerting profile](https://community.dynatrace.com/t/wild-card-or-regex-in-data-explorer-custom-event-alerting-profile/36764)

<div class="topic-metadata">

**Author:** [@pvr](https://community.dynatrace.com/u/pvr)\
**Replies:** 6\
**Last updated:** [June 19, 2023, 9:38am UTC](https://community.dynatrace.com/t/wild-card-or-regex-in-data-explorer-custom-event-alerting-profile/36764 "2023-06-19T09:38:35Z")

</div>

Hello, Does the DT GUI allow us to filter on regular expressions or wild cards for the data explorer and custom alerting profiles? I have a use case of collecting ready message count in a number of queues all with name…

---

## [How to UNfilter in distributed traces?](https://community.dynatrace.com/t/how-to-unfilter-in-distributed-traces/39166)

<div class="topic-metadata">

**Author:** [@seb2953](https://community.dynatrace.com/u/seb2953)\
**Replies:** 5\
**Last updated:** [April 5, 2023, 11:40am UTC](https://community.dynatrace.com/t/how-to-unfilter-in-distributed-traces/39166 "2023-04-05T11:40:05Z")

</div>

In the distributed view, the search (Most recent trace) works fine and quick. For instance, it filters (or shows) all traces with my given pattern “actuator”… What I would like now is to see all traces that DO NOT conta…

---

## [How to RegEx a user action property?](https://community.dynatrace.com/t/how-to-regex-a-user-action-property/39022)

<div class="topic-metadata">

**Author:** [@mareguera](https://community.dynatrace.com/u/mareguera)\
**Replies:** 4\
**Last updated:** [March 27, 2023, 5:31pm UTC](https://community.dynatrace.com/t/how-to-regex-a-user-action-property/39022 "2023-03-27T17:31:51Z")

</div>

I have created a user action property to get the revenue using a CCS selector. I get the following data: \[, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Total: $500,00\] …

---

## [Dynatrace regex tester](https://community.dynatrace.com/t/dynatrace-regex-tester/39014)

<div class="topic-metadata">

**Author:** [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Replies:** 5\
**Last updated:** [March 27, 2023, 1:11pm UTC](https://community.dynatrace.com/t/dynatrace-regex-tester/39014 "2023-03-27T13:11:46Z")

</div>

Hi, I would like to know if Dynatrace has some place to test regex expressions, I think dynatrace.software was available in the past. I have just attached some screenshot. Reading this forum entry are pointing to some …

---

## [Calculated service metrics to capture request name containing regex](https://community.dynatrace.com/t/calculated-service-metrics-to-capture-request-name-containing-regex/38300)

<div class="topic-metadata">

**Author:** [@Fisher](https://community.dynatrace.com/u/Fisher)\
**Replies:** 5\
**Last updated:** [February 7, 2023, 2:04pm UTC](https://community.dynatrace.com/t/calculated-service-metrics-to-capture-request-name-containing-regex/38300 "2023-02-07T14:04:09Z")

</div>

Hello, team! I try to create a calculated service metric. It must capture request like: /projects/{projectId}/files/\*\* For example: projects/platform\_features/files/help/ When I create a metric, I use the condition “r…

[Next page](https://community.dynatrace.com/tag/regex/719.md?match_all_tags=true&page=1&tags%5B%5D=regex)
