Apach2 monitor?

Preston Hagar prestonh at gmail.com
Tue Dec 16 16:56:35 UTC 2008

On Tue, Dec 16, 2008 at 2:30 AM, Knapp <magick.crow at gmail.com> wrote:
> I am running a small home server for my web page. Is there some software
> that can tell what file(s) Apache is currently sending out and to whom, how
> fast etc? Also past info about this subject?
> --
> Douglas E Knapp

Depending on how you have Apache setup and exactly what you want to
do, you could just

tail -f /etc/apache/access_log

(you may have to change that to where your access_log is configured)

That will at least tell you who (what IP) is getting what file.  To
get "how fast" you might need to do a custom log.  For example, the
access log config section on the Apache 2.2.6 server I run looks
something like this:

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-agent}i\" %{VLOG}e" combined
CustomLog "/var/log/apache/access_log" combined env=VLOG

To get "Time taken to serve request, in seconds", you could add a %T
to the LogFormat line.  Below is a link to all the directives. You
never stated if you use Apache 1.3 or 2.0+, so I put in a link to

(Apache 1.3)

(Apache 2.2)

This is a very quick and dirty way to start looking for "real time"
data.  If you are just looking for something specific, say one page
being served, or one ip requesting, you could append a | grep <ip or
page name> to the tail command above and it should be useful.   If you
want compiled statistics, you might want to look into something like
AWstats.  The downside is that it won't be realtime and I am not sure
if it "understands" the time to serve request parameter, but it does
make pretty graphs of everything else (it is what I use and the
LogFormat above is the one I use for it).

As far as real time monitors go, I am not aware of one, but it
wouldn't surprise me if there is something out there.   Hopefully this
might at least get you looking down the right path.


More information about the ubuntu-users mailing list