July 2017
Beginner to intermediate
340 pages
7h 43m
English
The last metrics that we want to have in our centralized logger is everything related to the HTTP requests and responses performance. We could add those metrics inside the Flask application alongside our timers, but it's better to do it at the web server level to reduce the overhead and to make metrics compatible with content that's not generated by Flask.
For instance, if nginx serves static files directly, we still want to track that. Graylog has a marketplace (https://marketplace.graylog.org) for extending the system with content packs, and there's an nginx content pack (https://github.com/Graylog2/graylog-contentpack-nginx) that will parse nginx's access and error logs to push them in Graylog.
The pack comes with a ...