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
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
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
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
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
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