Re: [Tutor] Simple Stats on Apache Logs

2010-02-11 Thread Justin Lintz
On Thu, Feb 11, 2010 at 4:56 AM, Lao Mao wrote: > Hi, > > I have 3 servers which generate about 2G of webserver logfiles in a day. > These are available on my machine over NFS. > > I would like to draw up some stats which shows, for a given keyword, how > many times it appears in the logs, per hou

Re: [Tutor] Simple Stats on Apache Logs

2010-02-11 Thread Kent Johnson
On Thu, Feb 11, 2010 at 4:56 AM, Lao Mao wrote: > Hi, > > I have 3 servers which generate about 2G of webserver logfiles in a day. > These are available on my machine over NFS. > > I would like to draw up some stats which shows, for a given keyword, how > many times it appears in the logs, per hou

Re: [Tutor] Simple Stats on Apache Logs

2010-02-11 Thread spir
On Thu, 11 Feb 2010 09:56:51 + Lao Mao wrote: > Hi, > > I have 3 servers which generate about 2G of webserver logfiles in a day. > These are available on my machine over NFS. > > I would like to draw up some stats which shows, for a given keyword, how > many times it appears in the logs, pe

Re: [Tutor] Simple Stats on Apache Logs

2010-02-11 Thread Lao Mao
Hi Christian, grep -c > or if you are looking for only stuff for today for eg then > grep | grep -c > I don't see how that will produce figures per hour! That would be the simplest implementation. For a python implementation > think about dictionaries with multiple layers like {Date: {Keyw

Re: [Tutor] Simple Stats on Apache Logs

2010-02-11 Thread Christian Witts
Lao Mao wrote: Hi, I have 3 servers which generate about 2G of webserver logfiles in a day. These are available on my machine over NFS. I would like to draw up some stats which shows, for a given keyword, how many times it appears in the logs, per hour, over the previous week. So the beha

[Tutor] Simple Stats on Apache Logs

2010-02-11 Thread Lao Mao
Hi, I have 3 servers which generate about 2G of webserver logfiles in a day. These are available on my machine over NFS. I would like to draw up some stats which shows, for a given keyword, how many times it appears in the logs, per hour, over the previous week. So the behavior might be: $ ./we