How to visualize HTTP status codes by URI path?

Please share your agent version and other relevant versions below:

Newrelic agent: 1.34.0
Node.js version: 4.4.6
Env: AWS Elastic Beanstalk

Please share your question/describe your issue below.

Is there a way, using New Relic, to visualize the HTTP responses codes by type and URI Path that my application returns as a function of time?

Hi, @edmond: You may be able to chart that data in Insights:

Not sure how/where you would show URI on that chart, though.

Hi Phil, Thanks for the answer. Seeing response codes by URI path would be more useful as it would allow me to spot trends or problems in the application. The error rate for logins, as people get their password wrong, should be higher than the error rate for user content submission.

Still, I’ll take a look at insights. Again, thanks.

You can do that, too:

I just don’t know how to show both transaction name and response code on the same chart.

You might also take a look at the Error Analytics page and see if it lets you do what you’re looking for.

Again thanks. I think I can build something with logstash. I was hoping New Relic supported it. :slight_smile:

If you are not looking for a chart, you could use another query @edmond. You can add in the remaining httpResponseCodes.

SELECT
filter(count(*), WHERE httpResponseCode=200) as '200', 
filter(count(*), WHERE httpResponseCode=201) as '201',
filter(count(*), WHERE httpResponseCode=300) as '300'
FROM Transaction FACET name
1 Like

Thank you, that was very helpful. However, a better query for me was:

SELECT 
filter(count(*), WHERE httpResponseCode LIKE '2%') as '200', 
filter(count(*), WHERE httpResponseCode LIKE '3%') as '300',
filter(count(*), WHERE httpResponseCode LIKE '4%') as '400',
filter(count(*), WHERE httpResponseCode LIKE '5%') as '500'
FROM Transaction FACET name
1 Like

@edmond Thanks for posting the query that worked better for you. I’m glad you found a solution.