# Logs analyzer

**URL:** <https://www.ruby-forum.com/t/logs-analyzer/219831>\
**Category:** NGINX\
**Created:** [May 17, 2012, 5:38pm UTC](https://www.ruby-forum.com/t/logs-analyzer/219831 "2012-05-17T17:38:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gurdipe\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b77776/32.png) [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Post date:** [May 17, 2012, 5:38pm UTC](https://www.ruby-forum.com/t/logs-analyzer/219831/1 "2012-05-17T17:38:28Z")

</div>

Hi, other question he he.

Need to analyze the nginx logs, wath tool (open and for Linux)  
recommend?  
(if is web based and make graphics better)

–  
El Tio ~ Programador, hacker y filósofo  
web: [http://blog.exodica.com.ar](http://blog.exodica.com.ar)  
Linked’in: [http://www.linkedin.com/in/ogentilezza](http://www.linkedin.com/in/ogentilezza)  
Twitter: @exos, Indeti.ca: @exos  
Tels: [+54 11] 638-LINUX (54689) - [+54 9 11] 6799-4797

-----BEGIN GEEK CODE BLOCK-----  
Version: 3.1  
GCS/IT d-- s:++ a- C+++$ UBL+++$ P(-) L+++$ !E— W+++$ !N !o K-? !w—  
!O  
!M-- V? PS+++@ !PE Y+(++) PGP++ !t— !5 X++ R(+) tv–? b- DI D-- G e@  
h\>++  
r+++(-) y+++\>+++++  
------END GEEK CODE BLOCK------

---

<div class="post-metadata">

**Author:** ![Tio\_O](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b9bd4f/32.png) [@Tio\_O](https://www.ruby-forum.com/u/Tio_O)\
**Post date:** [May 17, 2012, 6:00pm UTC](https://www.ruby-forum.com/t/logs-analyzer/219831/2 "2012-05-17T18:00:12Z")

</div>

2012/5/17 Tio O. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Hi, other question he he.
> 
> Need to analyze the nginx logs, wath tool (open and for Linux) recommend?  
> (if is web based and make graphics better)

Since logs are fully customizable you could use the “usual suspects”:  
awstats, webalizer or others.

Probably in these days the best option is real time analyzers, like  
google analytics, xiti, etc.

Hope this helps.  
Kind regards.

---

<div class="post-metadata">

**Author:** ![Tio\_O](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b9bd4f/32.png) [@Tio\_O](https://www.ruby-forum.com/u/Tio_O)\
**Post date:** [May 17, 2012, 7:11pm UTC](https://www.ruby-forum.com/t/logs-analyzer/219831/3 "2012-05-17T19:11:18Z")

</div>

2012/5/17 Daniel C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> google analytics, xiti, etc.
> 
> Hope this helps.  
> Kind regards.
> 
> * * *
> 
> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://mailman.nginx.org/mailman/listinfo/nginx)

Now is too late form change the log format (need parse recents logs. And  
i  
need it for a webservice app. I can’t integrate a web based service as  
Google Analytics, etc.

The only thing I really need is to calculate the requests according to  
the  
time of day.

Now I think that makes my own script.

–  
El Tio ~ Programador, hacker y filósofo  
web: [http://blog.exodica.com.ar](http://blog.exodica.com.ar)  
Linked’in: [http://www.linkedin.com/in/ogentilezza](http://www.linkedin.com/in/ogentilezza)  
Twitter: @exos, Indeti.ca: @exos  
Tels: [+54 11] 638-LINUX (54689) - [+54 9 11] 6799-4797

-----BEGIN GEEK CODE BLOCK-----  
Version: 3.1  
GCS/IT d-- s:++ a- C+++$ UBL+++$ P(-) L+++$ !E— W+++$ !N !o K-? !w—  
!O  
!M-- V? PS+++@ !PE Y+(++) PGP++ !t— !5 X++ R(+) tv–? b- DI D-- G e@  
h\>++  
r+++(-) y+++\>+++++  
------END GEEK CODE BLOCK------

---

<div class="post-metadata">

**Author:** ![Tio\_O](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b9bd4f/32.png) [@Tio\_O](https://www.ruby-forum.com/u/Tio_O)\
**Post date:** [May 17, 2012, 7:38pm UTC](https://www.ruby-forum.com/t/logs-analyzer/219831/4 "2012-05-17T19:38:32Z")

</div>

2012/5/17 Tio O. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> > awstats, webalizer or others.  
> > time of day.
> 
> Now I think that makes my own script.

Sure, you could. But first check awstat it’s also customizable in  
order to match your logs.

---

<div class="post-metadata">

**Author:** ![Tio\_O](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b9bd4f/32.png) [@Tio\_O](https://www.ruby-forum.com/u/Tio_O)\
**Post date:** [May 17, 2012, 8:48pm UTC](https://www.ruby-forum.com/t/logs-analyzer/219831/5 "2012-05-17T20:48:02Z")

</div>

On Thu, May 17, 2012 at 10:37 AM, Daniel C.  
\<[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> wrote:

> > > Since logs are fully customizable you could use the “usual suspects”:
> > 
> > The only thing I really need is to calculate the requests according to  
> > the  
> > time of day.
> > 
> > Now I think that makes my own script.
> 
> Sure, you could. But first check awstat it’s also customizable in  
> order to match your logs.

You could use the log\_by\_lua I just implemented :

> **[GitHub - mtourne/lua-nginx-module: Embed the Power of Lua into NginX](https://github.com/mtourne/lua-nginx-module#log_by_lua)**
>
> Embed the Power of Lua into NginX

It basically lets you aggregate data in the lua exposed shared memory  
segments, and query them from another Nginx location.  
Check the example in the documentation.

Regards,  
Matthieu.
