Summary
In this chapter, we refreshed our knowledge of how logging works in Nginx. There are two types of logs; one of them may be infinitely extended, whereas the other is hard to parse by scripts because it does not have enough structure.
We spent some time on special topics, such as log rotation and logging POST request bodies (with a small test stand that we created step by step in the chapter, no less).
We also analyzed several error records from some real error logs.
The next chapter will have more actual problems analyzed and troubleshot. We will present several cases of actual problems that people had with read Nginx installations and try to debug them from the ground up.