I have tried to collect the http response codes from a web server.
I have used the following Measure, but it only returns -1 for each variant:
Server Side Performance > Functional Health > Http Response Code > HTTP 4xx (5xx) etc..
I am not sure how I can collect this data.
We do not have the UEM piece, but I would be surprised if that is required to get the codes.
Any Ideas?
Thanks,
Heath
Answer by Andreas G. ·
Hi
The measure you selected (Functional Health -> Http Response Code -> HTtp 4xx/5xx) is a measure that tells you how often the Http Response Code based Error Rule detect a PurePath that contained a 4xx/5xx. This is an Error Rule that comes with every System Profile pre-configured. You can change it in your System Profile -> Error Detection Tab. If you want to know more about Error Detection check out the information in the doc: System Profile - Error Detection
dynaTrace automatically captures HTTP Response Codes and uses it for Error Detection. But - the response code can also be used in Business Transactions. There is a measure called 'Web Requests - Response Status Code'. Create a measure of that type and it will return the Http Response Code for a PurePath. You can then e.g: Create a Business Transaction that filters those PurePaths that have a certain Response Code or split your PurePaths by Response Code.
To verify which Response Codes get captured do the following: Simply select a PurePath, select the entry point node (typically a Servlet or ASP.NET Node) and click on Details. You will now see all context information captured by dynaTrace which will include the Http Response Code for Web Requests.
Hope this helps
BTW: we are going to have a dynaLearn webinar this week where we focus on Advanced Business Transactions. I can show you how to create a BT that filters on a specific Response Code in the Q&A Section. Here is the link to the webinar announcement: dynaLearn Webinar Update - Next Webinar on Advanced Business Transactions - June 27
JANUARY 15, 3:00 PM GMT / 10:00 AM ET