Aaron Saray

open source programmer,
web developer

entrepreneur, author
and musician

My Blog

contains PHP, Web and business/entrepreneurial related content. Please join in the conversation!

Using ApacheTop with Cronolog

I love ApacheTop. I love Cronolog. After I installed cronolog and used it in my apache configuration, however, I found it more and more difficult to use apachetop. I stopped using it. Well, I finally came up with a bash script that eases my frustration with calling the proper path names for apachetop. Check it out:

My httpd.conf customlog

The entry in httpd.conf vhost contains this line:

?View Code APACHE
1
CustomLog "|/usr/local/sbin/cronolog /etc/httpd/logs/%Y/%m/%Y-%m-%d-access_log" combined

Pretty simple – just keeping my logs separated.

My webtop.sh script

In order to make it easier on myself, I now envoke apachetop with this bash script.

1
2
#!/bin/bash
apachetop -T 3600 -f "/etc/httpd/logs/`date +%Y`/`date +%m`/`date +%Y`-`date +%m`-`date +%d`-access_log"

And then I’m good to go.

This entry was posted in apache and tagged . Bookmark the permalink.

One Response to Using ApacheTop with Cronolog

  1. Amina says:

    Hello, do you know where we can have technical support for Cronolog ?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>