# Good log analysis tool for nginx?

**URL:** <https://www.ruby-forum.com/t/good-log-analysis-tool-for-nginx/137831>\
**Category:** NGINX\
**Created:** [May 16, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/good-log-analysis-tool-for-nginx/137831 "2008-05-16T18:33:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rt\_Ibmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/59ef9b/32.png) [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Post date:** [May 16, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/good-log-analysis-tool-for-nginx/137831/1 "2008-05-16T18:33:42Z")

</div>

Can anyone recommend a good log analysis tool that is a good match for  
nginx? I’d like something that is flexible, where I can tell it which  
fields in the format are for which parts of the data (i.e. user agent is  
field 6) etc. Thanks! Note that I am looking for a SERVER SIDE tool to  
process the nginx logs (JavaScript based analytics tools will not work  
for this particular application).

---

<div class="post-metadata">

**Author:** ![Rt\_Ibmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/59ef9b/32.png) [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Post date:** [May 16, 2008, 9:57pm UTC](https://www.ruby-forum.com/t/good-log-analysis-tool-for-nginx/137831/2 "2008-05-16T21:57:51Z")

</div>

Rt,

If you are using Nginx with a standard Apache log format then  
Webalizer might do. This is what the report looks like from the  
author’s site: [http://www.mrunix.net/webalizer/sample/index.html](http://www.mrunix.net/webalizer/sample/index.html)

Webalizer - Web Server Stats  
[Webalizer - Web Server Statistics @ Calomel.org](https://calomel.org/webalizer.html)

–  
Calomel @ [https://calomel.org](https://calomel.org)  
Open Source Research and Reference

---

<div class="post-metadata">

**Author:** ![Rt\_Ibmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/59ef9b/32.png) [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Post date:** [May 16, 2008, 9:57pm UTC](https://www.ruby-forum.com/t/good-log-analysis-tool-for-nginx/137831/3 "2008-05-16T21:57:51Z")

</div>

On May 16, 2008, at 12:25 PM, Rt Ibmer wrote:

> Can anyone recommend a good log analysis tool that is a good match  
> for nginx? I’d like something that is flexible, where I can tell it  
> which fields in the format are for which parts of the data (i.e.  
> user agent is field 6) etc. Thanks! Note that I am looking for a  
> SERVER SIDE tool to process the nginx logs (JavaScript based  
> analytics tools will not work for this particular application).

I’ve really liked AW Stats in the past  
[http://awstats.sourceforge.net/](http://awstats.sourceforge.net/)

You could also look into w3perl  
[http://www.w3perl.com/softs/](http://www.w3perl.com/softs/)

---

<div class="post-metadata">

**Author:** ![Rt\_Ibmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/59ef9b/32.png) [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Post date:** [July 6, 2012, 2:47pm UTC](https://www.ruby-forum.com/t/good-log-analysis-tool-for-nginx/137831/4 "2012-07-06T14:47:43Z")

</div>

Please check Nginx  
Error Log Reader (  
[http://gadelkareem.com/2012/07/01/nginx-error-log-reader/](http://gadelkareem.com/2012/07/01/nginx-error-log-reader/) ); a php  
reader/parser/analyzer for Nginx error log  
file. the script is able to read error logs recursively and display them  
in a user friendly table. Script configuration includes the number of  
bytes to read per page and allow pagination through the error log.

---

<div class="post-metadata">

**Author:** ![Rt\_Ibmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/59ef9b/32.png) [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Post date:** [August 14, 2015, 6:21pm UTC](https://www.ruby-forum.com/t/good-log-analysis-tool-for-nginx/137831/5 "2015-08-14T18:21:18Z")

</div>

I know this is an old post, but you may try GoAccess; works great - free  
and open source console based. It may output an HTML,JSON,CSV report  
too.

[http://goaccess.io/](http://goaccess.io/)
