• 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 Srimathi S. · Sep 19, 2018 at 06:42 AM · appmon 7.0 appmon 7 business transaction 7.1

What is the Regex to omit words with sequence of uppercase letters from a group of sentences.?

For example...if I have a sentence as below as input:.
The details you entered is same as already given for MISS XXX. Kindly change the details for MISS YYY.
my expected output should be like

The details you entered is same as already given for.Kindly change the details for.
Can someone kindly help me on this.?

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.

4 Replies

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

Answer by Rajesh S. · Sep 27, 2018 at 10:55 AM

Hi, Try this:

(The details you entered is same as already given for).\*?(Kindly change the details for).\*?|.\*?(Unknown Error).\*|(There is a problem with the).\*?(have entered\. Please verify this and resubmit your details\.)

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 Srimathi S. · Sep 19, 2018 at 12:55 PM

Hi @Radu S, @Rishabh Y.
I am attaching the screenshot of my BT output.
It is a user action based BT.
The scenario is I am capturing all the errors in a certain application.one of those errors have name of the customer mentioned in it.Due to this I am getting seperate entries for same error. I want that particular error to be grouped. I can see that only the name is different..the other parts are same and that the names are in capital letters. So I wanted a common regex which would accept all errors but should group this particular with name together.test.png


test.png (21.5 KiB)
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 Rishabh Y. · Sep 19, 2018 at 12:33 PM

Hi @Srimathi S.

Can you please attach some samples for the errors/exceptions so that I can have a clear picture as what possible conditions will match with the errors while designing the regex.

Cause designing regex without knowing the possible senarios we dealing with is going to be tricky.

Thanks and Regards,

Rishabh

+91-8090500238

Linkedin

Comment

People who like this

0 Show 1 · 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 Srimathi S. · Sep 20, 2018 at 11:07 AM 0
Share

I am attaching the screenshot of my BT output below

avatar image

Answer by Radu S. · Sep 19, 2018 at 10:46 AM

Hi Srimanthi,

You can use multiple capture groups. So you can use something like:

(The details you entered is same as already given for )[A-Z]+\ [A-Z]+(\. Kindly change the details for )[A-Z]+\ [A-Z]+\.

And that will capture what you need, leaving out the stuff in capital letters.

Let me know how that goes.

Best regards,

Radu

Comment

People who like this

0 Show 3 · 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 Srimathi S. · Sep 19, 2018 at 11:19 AM 0
Share

Hi Radu,
Thanks for ur reply.
Actually I have set the BT to capture N number of errors.
I have mentioned only one of those errors above.So if I specifically write a regex for that error alone..the other errors are not being captured.
I need a generic regex which will capture all the errors and in case of the above error it should not consider the name part (ie MISS XXX ,etc)and the name may be longer than 2 words also.
Can you help me on this?

avatar image Radu S. Srimathi S. · Sep 19, 2018 at 11:53 AM 0
Share

This may take a while :)

try:

(.*?)[A-Z]+\ ?(.*?)

do you have a couple of purepaths with these errors that you can attach here? It would be easier to test these out directly on some input.

avatar image Srimathi S. Radu S. · Sep 20, 2018 at 11:07 AM 0
Share

I am attaching the screenshot of my BT output below

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

30 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

What is the regex to exclude the UPPER Case word from a sentence?

How to get the increased or decreased percentage of a particular value when compared in two different timeframes?

Docker monitoring via DT Appmon

Misconfigured Business transaction detected

How to get the top 10 values in dashboard result and how to get the visit count for a purepath based BT?

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