Debugging with logs


Since real time syslogs can be managed with a conditional, then can be used to help debug odd edge cases in your application that you wouldn’t be able to find before. Here’s a cool example:

To create a log feed for all 500 errors, as well as some extra information that’s valuable for tracking down these errors, create a new log feed with the following format string:

  • Format string %h %l %u %t %r %>s server.datacenter req.http.Fastly-Client-IP geoip.region req.http.Fastly-SSL

This would go in the conditional section of a newly created log feed (click the settings gear to the right of the new log to access this)

  • Conditional: resp.status > 499 && resp.status < 600

Is there a way to track SSL traffic vs. non-SSL traffic?