question

keerthi C. avatar image
keerthi C. asked ·

Create a business transaction

Track the successful customer logins to site vs. failures .Is it possible in dynatrace?

business transactionhybris
10 |2000000 characters needed characters left characters exceeded

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

Pierrick P. avatar image
Pierrick P. answered ·

Hi,

It's possible, for example you can create a measure that gets the number of errors on login (i.e. "Invalid credentials" or something like that) and then compare it on a single graph to another measure on the login action (method that would not return an error.

Let me know if you need help with this,

Cheers,

5 comments Share
10 |2000000 characters needed characters left characters exceeded

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

ok. can u please help me in creating a business transaction for the same?

0 Likes 0 · ·

Sure,

First what you need is to know the method that's being called whenever a login is performed,

your dev team should know about this. Once you know the method or the Web Request, you need to know what return parameter you get that will allow you to tell if the login failed or not.

For example you can have a "String login(String username, String password)" method that would return a String or a Integer containing either an error code or a custom error such as "Invalid username or password".

Based on that you can then create a measure (http://apmu.dynatrace.com/index.php?category_id=60...

You'd have two measure, one for a failure and one simply for the successfull call of the login method.

I recommend you use the link above to see how to create such measure, you will also have in the same section the procedure for business transactions.

If you need more help, please let me know,

Cheers,

0 Likes 0 · ·

I didn't find any information in that link. It was just to update my profile.

I tried to create a measure for login failure and login success and I was able to create it successfully. But only thing I need to know about the business transaction where I can correlate both the measure?

0 Likes 0 · ·

Hi,

So if you created a measure for the successfull login, then create one for the failed login. You won't need a business transaction then, you can just create a chart that shows the count for both measure, a stacked bar chart or a pie chart seems appropriate for this.

Does this help ?

Cheers,

0 Likes 0 · ·

ok thank you

0 Likes 0 · ·
Rajesh S. avatar image
Rajesh S. answered ·

You can create multiple BT based on Methods Return value.

Create Following BTs:

MyApplication - Post Login - Total : filter by Measure Based on Invocation of The Login method

MyApplication - Post Login - Success :

filter by Measure Based on return value of The Login method contains Success Criteria

MyApplication - Post Login - Failure :

filter by Measure Based on return value of The Login method contains Non-Success Criteria

Further, If returning codes are fixed, you can split the transactions based on Technical and Business failure.

e.g.

MyApplication - Post Login - FailureSplit :

filter by Measure Based on return value of The Login method contains Non-Success Criteria AND SPLIT BY return value containing non success and Transaform Regex to select the error part.

This will give all the Failure type (User error or actual application failures).

Further you can create an Alert BT that would alert the application in case return value contains Technical Failure(MyApplication - Post Login Failure - Alert).

To correlate, plot the Meter chart containing three transactions.

Share
10 |2000000 characters needed characters left characters exceeded

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