Setting up your custom logs for easy parsing

The point of logging is not only to find out errors in a setup, but also for various analytics that one can perform on the usage of the sites running on the server. There are various tools that are available that one can use to analyze your web logs. Some of the open source and freely available ones are AWstats, webalizer, and so on. We will have a look at how to set up for AWstats.

The following screenshot is a sample of the AWstats generated HTML report:

Setting up your custom logs for easy parsing

How to do it...

We will first have a look at how to install AWstats, and then configure it to create a continuous report around Nginx logs.

  1. Add the ...

Get Nginx 1 Web Server Implementation Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.