I am trying to export the status code and ajax error code in user experience from browser snapshot data of respective requests for our analytics purpose? Is there any way to do this?
I tried with multiple options but am not sure how will be able to export these.
I have used analytics API as an alternative to fetch these values but I see ajax error value is always captured null for all the requests on the analytics level.
You can see above our requirement is to just capture this status code and ajax error code for the respective API.
Please help me with this.
Hi!
How did you get the http status code on BRUM?
Regards,
Hi Team,
I have followed the steps that you have provided, however, I can see the Null value is only captured for Ajax error that is not correct.
Could you please guide me further in order to get the correct value of the Ajax error?
I have noticed one more thing all this analytics level data is sync with REAL USER -Analyze tab. As you can see we are capturing nothing here ajax error in the real user tab so my question remains the same is there any way so that Ajax error we would be able to capture.
In case if some configuration mistake we are doing from our end on the end-user experience level please guide me for those as well so that we will correct those and will start capturing those data(Ajax error).
As I see in the screenshot shared by you that you are able to capture that Ajax error. It would be really helpful if you can share your configuration for monitoring the end-user so that we will be also doing the same.
Thanks and Regards,
Dhiraj Kumar
^ Edited by @Ryan.Paredez to remove PII. Please do not leave your phone number on community posts. I would recommend sharing that as a private message with someone if you two decide to communicate that way.
Hi @Dhiraj.Choudhary ,
Thank you for checking the analytics data.
Could you please check below?
After adding include rules, please check Analyze page by filtering Page Type by AJAX and see if there is any record for AJAX requests.
Best Regards,
Hiroki
Hi Team,
Thank you!! for you valuable comments We are able to get Ajax error in Analytics as I have tweaked some configuration based on your input and official documentation.
I was stuck on below points as we are in the process of enhancing health rule based on capability that AppDynamics can provide :
1.Just wanted to check if there is any way we can configure the health rule on AppDynamics level where we can send the alert only when we get 500 series Ajax error. As those are the critical one and we need immediate attention.
2.If we need to configure health rule for JavaScript error on browser level (for example if we want to send the alert if java script error occurs on IE browser)is there any way for that.
It would be really help full for us .if you can provide some insight on above query.
Thanks and Regards,
Dhiraj Kumar
Hi @Dhiraj.Choudhary ,
Great to hear you could get Ajax error in Analytics.
1. You can create an Analytics metric from ADQL and monitor it with a health rule.
e.g.
ADQL like below will make a metric for the number of 500 Ajax error for XXX url. By making a health rule that becomes critical once the metric value exceeds 1, you may be able to monitor the number of 500 Ajax error.
SELECT count(*) FROM browser_records WHERE pagename LIKE "XXX" ajaxerror LIKE "*status*500*"
2. JavaScript error may be available in analytics too, so you can create a custom metric and monitor it.
You can search JavaSciprt error with ADQL like below.
SELECT count(*) FROM browser_records WHERE scripterrordata.message IS NOT NULL.
https://docs.appdynamics.com/21.8/en/analytics/using-analytics-data/visualize-javascript-errors
Best Regards,
Hiroki
Thank you for the response really helped a lot!!
Just one question could you help me with the way configure health rules with specific http error code ,Ajax error from EUM.
It would be really help full if you will provide steps by steps way to do the same with screenshot.
Hi @Dhiraj.Choudhary ,
Hi Team,
Thank you for the update!!
Is there any way to delete the custom metric that we have created on AppDynamics from the ADQL query on the analytics level as you suggested below?
Thanks and Regards,
Dhiraj Kumar
Post edited by @Claudia.Landivar to remove a phone number. Please do not share your or other phone numbers on community posts.
Hi Team,
Thank you for your quick response!!
One strange behavior we observed in AppDynamics Ajax error code(500 series error) count in analytics through ADQL and browser snapshot((500 series error))for the same base URL.
For Analytics above we get the count 522 for Ajax error code 500 series.
But for the same when we verified from browser snapshot as per my understanding for the same page name we should be getting the same count but we are getting only 228 counts for the same time range as you can see below.
why is there a difference in count in browser snapshot data and data we get through ADQL?
Do we have any restriction on the total no of counts that we get on browser snapshot data?
Please clarify that point. It would be really helpful in order to implement the same on the project level as we are planning to create some custom metrics using an ADQL analytics query. We observed these differences so just looking for some clarification to avoid any discrepancies later point in time.
Thanks and Regards,
Dhiraj Kumar
Hello @Dhiraj.Choudhary,
Did you have any more follow-up questions for @Hiroki.Ito? Did he help answer your question? If so, be sure to click on the Accepted Solution button on one of his replies.
Hi Team,
Thank you Very much !!
Is there a way to capture the JavaScript error from analytics and create the health rule based on that and send the alerts if that occurs to user?
Please help as we are struggling for the same.
Thanks,
Dhiraj Kumar
SELECT count(*) FROM browser_records WHERE scripterrordata.message IS NOT NULL