Nginx

There are various popular web servers and nginx is one of these popular web servers. Nginx is widely used on the internet as an alternative and robust web server. Nginx referred to as engine x is very powerful and in May 2014 it was running on 18% of the most busiest websites powering the internet.

Nginx like any other web server does log website visits to log files and these can be used for analysis with Apache Logs Viewer. ALV can be used to parse and analyse nginx log files, just like any other log file. Nginx access log are typically formatted using the combined log format. To analyse such files open them in Apache Logs Viewer and select the Combined log format. This will automatically load the file in the desired format. You can then run all your analysis and dive deep into your logs.

The Nginx log format is the following:

%h %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"

To enter in Apache Logs Viewer simply enter it in the following format:

LogFormat "%h %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" nginx

 

For further information please refer to the help section.