• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home
  • Public Forums
  • Network Application Monitoring
  • NAM Open Q&A
avatar image
Question by Bob Z. · Nov 12, 2013 at 08:36 AM ·

Reg-X Question

In DC RUM, I'm trying to write a reg-x that will remove a portion of the middle of a URL.  The Reg-x is matching, however the entire URL is being reported to the CAS.

Here is the reg-x: (https://riportal.zurichna.com/wps/mycontenthandler)..[^\*]*.(/favicon.ico)

Here is the URL: 

https://riportal.zurichna.com/wps/mycontenthandler/!ut/p/digest!c140c8qa4mh6pkz8lttjcq/res/.riskintelligenceexpansion/themes/html/rieportaltheme2/images/favicon.ico

 

I expect the portion in between the sets of parentheses to be drop or not reported to the CAS. What's wrong with my reg-x 

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

3 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Joshua C. · Nov 20, 2013 at 11:02 AM

You might be right - I know in our case, having the slash in the second return value wouldn't return values correctly, even though the checker showed that it would work.  There seems to be a disconnect between the Regex verification tool and the way regex actually gets processed on the AMD.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Sebastian K. · Nov 20, 2013 at 05:56 AM

Bob, Josh - actually both regular expressions should work in this case.

Have you checked them using "Extended regular expression test" tool from RUM Console? See results for those regular expressions below:

 

Does the problem only occurs for resources like favicon.ico? A potential explanation here could be that since favicons' content-type is not on the "active-content-type" list. Can you disable content-type checking for this URL and see if that helps? 

 

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Joshua C. · Nov 12, 2013 at 12:20 PM

Good to talk to you again, Bob!  I think we've worked together in the past a bit.  We had the same issue with trying to exclude the dynamic session variable here, but I'm having trouble finding the exact software service we were having trouble with - I found a similar one though: 

(https://mywebsite/kb/session/).*(resume/idp/prp.ping)

So based on what works here, try:

(https://riportal.zurichna.com/wps/mycontenthandler/).*(favicon.ico) -

I remember spending hours on it, and it turned out that it just didn't like the slash to be on the other side.

 

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Forum Tags

esm siebel Dynatrace Managed license nam probe wan citrix dna rest api configuration mq alerting NAM 2018 dashboard dcrumadvisory reports css nam universal decode database mobileapp RUM ads sap nam console scripting nam server sequence transactions nam 2019 upgrade
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A