Apache log analyzer?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bonfils

    Apache log analyzer?

    Is there such a thing out there anywhere?

    I reckon it should be pretty simple to code a php application that *just*
    read the httpd-log(s) from Apache, parsed these and presented simple stats
    pages.
    Believe, I've spent hours searching the net. But all of the systems I've
    found seem to use a database (not neccesarily a bad thing, I suppose,
    considering the amount of data).
    But what's worse, they always do their *own* tracking (by means of inserted
    codes or image tags), which means the stats start from scratch the day you
    implement it (and you will have two systems logging a lot of the same info
    which doesn't seem very useful).

    Before I lose my patience and sit down and code the thing myself (yeah,
    right!), do anyone here know of an alternative? The stats can be simple as
    hell - just counting page hits by day, perhaps week and month, no more.

    Thanks in advance,

    --
    Kim B.



  • Thomas Kaarud

    #2
    Re: Apache log analyzer?

    *bonfils wrote:[color=blue]
    >
    > Is there such a thing out there anywhere?[/color]

    Yes, there is.....



    --
    Thomas


    Comment

    • Alvaro G Vicario

      #3
      Re: Apache log analyzer?

      *** bonfils wrote/escribió (Wed, 10 Dec 2003 11:11:16 +0100):[color=blue]
      > But what's worse, they always do their *own* tracking (by means of inserted
      > codes or image tags), which means the stats start from scratch the day you
      > implement it (and you will have two systems logging a lot of the same info
      > which doesn't seem very useful).[/color]

      Those programs are designed to provide with stats to those sites that don't
      have access to web server logs. You are looking for a log analyzer like
      webalizer, awstats or urchin (however, I believe none of this are coded in
      PHP).

      --
      --
      -- Álvaro G. Vicario - Burgos, Spain
      --

      Comment

      • Paul Herber

        #4
        Re: Apache log analyzer?

        On Wed, 10 Dec 2003 11:11:16 +0100, "bonfils"
        <kim@bonfils.yo ur.underwear.co m> wrote:
        [color=blue]
        >Is there such a thing out there anywhere?[/color]



        --
        Regards, Paul Herber, Paul Herber Systems Ltd. http://www.pherber.com/
        SanDriLa - SDL/MSC application for Visio
        email address is spam-trapped - s/*@/paul@/

        Comment

        • Chris Dean

          #5
          Re: Apache log analyzer?


          "bonfils" <kim@bonfils.yo ur.underwear.co m> wrote in message
          news:3fd6f1af$0 $27376$edfadb0f @dread16.news.t ele.dk...[color=blue]
          > Is there such a thing out there anywhere?
          >
          > I reckon it should be pretty simple to code a php application that *just*
          > read the httpd-log(s) from Apache, parsed these and presented simple stats
          > pages.
          > Believe, I've spent hours searching the net. But all of the systems I've
          > found seem to use a database (not neccesarily a bad thing, I suppose,
          > considering the amount of data).
          > But what's worse, they always do their *own* tracking (by means of[/color]
          inserted[color=blue]
          > codes or image tags), which means the stats start from scratch the day you
          > implement it (and you will have two systems logging a lot of the same info
          > which doesn't seem very useful).
          >
          > Before I lose my patience and sit down and code the thing myself (yeah,
          > right!), do anyone here know of an alternative? The stats can be simple as
          > hell - just counting page hits by day, perhaps week and month, no more.
          >
          > Thanks in advance,
          >
          > --
          > Kim B.
          > http://kim.bonfils.com
          >
          >[/color]

          I'm writing a real server stats analyser at the moment and will be porting
          the code to deal with apache logs when it's done maybe a start for you if
          nothing else - do you want a copy when done?

          Chris


          Comment

          • Chris Dean

            #6
            Re: Apache log analyzer?


            --

            "Chris Dean" <me@[remove this]christopher-dean.fsnet.co.u k> wrote in message
            news:br7gkd$ahu $1@ames.central .susx.ac.uk...[color=blue]
            >
            > "bonfils" <kim@bonfils.yo ur.underwear.co m> wrote in message
            > news:3fd6f1af$0 $27376$edfadb0f @dread16.news.t ele.dk...[color=green]
            > > Is there such a thing out there anywhere?
            > >
            > > I reckon it should be pretty simple to code a php application that[/color][/color]
            *just*[color=blue][color=green]
            > > read the httpd-log(s) from Apache, parsed these and presented simple[/color][/color]
            stats[color=blue][color=green]
            > > pages.
            > > Believe, I've spent hours searching the net. But all of the systems I've
            > > found seem to use a database (not neccesarily a bad thing, I suppose,
            > > considering the amount of data).
            > > But what's worse, they always do their *own* tracking (by means of[/color]
            > inserted[color=green]
            > > codes or image tags), which means the stats start from scratch the day[/color][/color]
            you[color=blue][color=green]
            > > implement it (and you will have two systems logging a lot of the same[/color][/color]
            info[color=blue][color=green]
            > > which doesn't seem very useful).
            > >
            > > Before I lose my patience and sit down and code the thing myself (yeah,
            > > right!), do anyone here know of an alternative? The stats can be simple[/color][/color]
            as[color=blue][color=green]
            > > hell - just counting page hits by day, perhaps week and month, no more.
            > >
            > > Thanks in advance,
            > >
            > > --
            > > Kim B.
            > > http://kim.bonfils.com
            > >
            > >[/color]
            >
            > I'm writing a real server stats analyser at the moment and will be porting
            > the code to deal with apache logs when it's done maybe a start for you if
            > nothing else - do you want a copy when done?
            >
            > Chris[/color]


            By the way it'll probably not be done until xmas or just after - ideally
            before 2nd week of jan tho

            Chris

            =+=+=+=+=+=+=+= +=+=+=+=+=+=+=+ =+=+=+=+=+=+=+= +=+=+=+=+=+=+=

            Chris Dean, Schools Outreach Project, Vega Science Trust
            University of Sussex, Falmer, Brighton. East Sussex. BN1 9QJ. UK.

            Tel.: +44 (0) 1273 87 72 93
            Email: kaur1@sussex.ac .uk
            Web: www.vega.org.uk

            =+=+=+=+=+=+=+= +=+=+=+=+=+=+=+ =+=+=+=+=+=+=+= +=+=+=+=+=+=+=


            Comment

            • Manuel Lemos

              #7
              Re: Apache log analyzer?

              Hello,

              On 12/10/2003 08:11 AM, bonfils wrote:[color=blue]
              > Is there such a thing out there anywhere?
              >
              > I reckon it should be pretty simple to code a php application that *just*
              > read the httpd-log(s) from Apache, parsed these and presented simple stats
              > pages.
              > Believe, I've spent hours searching the net. But all of the systems I've
              > found seem to use a database (not neccesarily a bad thing, I suppose,
              > considering the amount of data).
              > But what's worse, they always do their *own* tracking (by means of inserted
              > codes or image tags), which means the stats start from scratch the day you
              > implement it (and you will have two systems logging a lot of the same info
              > which doesn't seem very useful).
              >
              > Before I lose my patience and sit down and code the thing myself (yeah,
              > right!), do anyone here know of an alternative? The stats can be simple as
              > hell - just counting page hits by day, perhaps week and month, no more.[/color]

              You may want to take a look at this class. It is not really a log
              analyzer but rather a base for one. What it does is to watch a given log
              file.

              You can ask it to retrieve the log lines to do your own analysis and
              when the log is closed the class stores a sort of bookmark that
              indicates the last line of the log that was analyzed.

              Next time you run your log analysis script, the class is capable of
              picking up where it stopped. This makes the class suitable for tasks
              that are based on monitoring logs.

              Currently, the class has builtin support to send the newly added log
              lines to a given e-mail address. I developed this to be notified about
              problems in the server that make the PHP code not work properly so I can
              act promptly.

              I have more applications for this class in mind like detecting users
              causing excessive load in the server by using robots or some other
              hacks. So, I will probably add support to parse log lines in common formats.

              I think you can use it to make any kind log analisys that you want.



              --

              Regards,
              Manuel Lemos

              Free ready to use OOP components written in PHP


              Comment

              Working...