• 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
  • Application Monitoring & UEM
  • AppMon & UEM Open Q&A
avatar image
Question by Priyadharshini P. · Dec 20, 2011 at 01:44 PM ·

Doubt in Regex pattern for a web request

Hi,

I wanted to filter the web requests that are in a specific format. Eg : /soap/example1Ws/1/service,/soap/example2Ws/1/service,/soap/example3Ws/1/service]
So I am using a Regex pattern to filter out the web requests which has the URI pattern as below:
(/soap/[example1Ws,example2WS,example3Ws]/./.*)
I have also created a Business transaction that holds the web request measure with the above Regex pattern.
But no data is getting filtered in the Business transaction.
Please find the screenshots of the Business transaction and the Measure created with the Regex pattern.
Please advise.

Comment
Chad T.

People who like this

1 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.

5 Replies

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

Answer by Andreas G. · Dec 22, 2011 at 11:45 AM

Is it possible that you are actually not looking at Web Requests but Web Service calls? Can you tell me whether the PurePath is started by our Servlet Sensor or by our Web Service Sensor? If it is the Web Service Sensor you should actually use the WebService Measures that will return the Web Service Method Name or End Point. You can use this for grouping. There is also an out-of-the-box Business Transaction that groups all Web Service Calls by Name (Web Service by Method).

Could you verify if your purepaths are started by the servlet or the webservice sensor? You can also send us a screenshot from your purepath dashlet - that will allow us to see whether it is the servlet or ws sensor

andi

Comment
Chad T.

People who like this

1 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 Priyadharshini P. · Dec 22, 2011 at 10:37 AM

Hi,

Thanks a lot for your replies.I tried putting the regular expression  in the Transformation Regex field but still i did not get the data in the business transaction.The Regex works with the dialog (got using the bulb button next to the text field) where we test the Regex pattern but the data is not getting filtered in the business transaction.Please  find the screenshot of the Measure created with Regex pattern.

Please advise.

Comment
Chad T.

People who like this

1 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 Asad A. · Dec 21, 2011 at 12:48 AM

Priyadharshini

Instead of putting the regular expression in the value field, put it in the Transformation Regex field.

Comment
Chad T.

People who like this

1 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 Guenther G. · Dec 20, 2011 at 05:14 PM

Hi,

the Regexes used are Java regular expressions which are documented e.g. here http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html

You can use the bulb button next to the text field to get a dialog where you can try your regular expressions. For your case I would use something like this:
/soap/(example1Ws|example2Ws|example3Ws)/./.*

Günther

Comment
Chad T.

People who like this

1 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 Wolfgang G. · Dec 20, 2011 at 05:04 PM

Hi,

if you've got multiple URIs in the form /soap/example1Ws/1/service or /soap/example2Ws/1/service or /soap/example3Ws/1/service the pattern

(/soap/example1Ws|example2Ws|example3Ws/./.*)

should match any of them. Or did I misunderstand what you're trying to achieve?

Regards,
Wolfgang

Comment
Chad T.

People who like this

1 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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • 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