• 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 Mike S. · Feb 26, 2015 at 03:45 AM ·

Measure Attributes - Regex - capturing null groups

Hi,

I`m trying to setup a Measure which is using the metric - Methods - Argument Value.

I`m splitting a business transaction using the measure but would like to group the results based upon regexes of the String argument -

eg -

If the argument was 'Test 1',  'Test 2', or 'Test 3' - these would be grouped and counted together - if the argument was 'Foo 1', 'Foo 2' or 'Foo3', these would be grouped together.

My regex is - (Test).*|(Foo).*|(.*)

But when using this and testing it, the result includes the non matched capture groups, but as 'null' -

Is there anyway to eliminate the 'nulls' from the results?

 

Thanks, Mike

 

 

 

 

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 Andreas G. · Feb 26, 2015 at 06:19 PM

Hi. It seems that Sean McConville uploaded some screenshots to this page but didnt actually post a comment. This seems to be his solution:

 

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 Sean M. · Feb 27, 2015 at 10:34 PM

Hi Andreas/Mike,

I didn't post them because I realised the grouping wasnt quite the same....in fact I was only creating one group, rather than 3.

I've looked further at this now and I wonder if internally dynatrace is using .matches() rather than .exec() and that is why we are seeing null returned for empty groups. It might be the case that some code needs to go into dynaTrace to check for null and replace with an empty string? Although I think .exec() might do this anyway? 

Can you think of any other way around this? 

 

Many thanks,

Seán. 

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 Rick B. · May 06, 2015 at 01:50 AM 0
Share

Hi Sean,

Sorry to come back to this post after a closed ticket and a filed RFE but why wouldn't

(foo|bar)

work?  This would put messages either into the foo or the bar bucket... with no extra groups returning values

avatar image

Answer by Sean M. · May 06, 2015 at 04:35 AM

Hi Richard,

No apology required, in-fact, I think you have jogged my brain to think about it differently.
I shouldn't be trying to create splitting groups like this using regex to match a pattern.
Instead I should negate the UID position in log message with the transformation regex so that particular log messages become equal, and you are right, this can all be done in a single group.

So I would use something like

(.*foo[^.*]|.*bar[^.*])

To achieve what I am looking to.

Please close my RFE if you have the access.

Many thanks,

Sean

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 Mike S. · May 06, 2015 at 01:20 PM

Thanks Richard and Sean for following this up - i`ll see if i get time today to look at this approach.

 

Cheers, Mike

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

2 People are following this question.

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