[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Customizing httpd access logs
- Subject: Re: [cobalt-users] Customizing httpd access logs
- From: Hendrik Runte <cobalt@xxxxxxxxxx>
- Date: Wed Apr 4 16:20:16 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
am 04.04.2001 19:02 Uhr schrieb Mike unter michaelpearl@xxxxxxx:
> On a different Linux distribution, the httpd access logs were separated by
> domain. Each virtual domain has it's own access-log and I could set up
> logrotate to handle each log differently.
>
> The Cobalt Raq3i machines that I have all have a combined access log. I'd
> like to adjust how logrotate handles log for individual domains, but I can't
> since the log is combined.
>
> My goal is to have the logs for a single domain rotate daily instead of by
> size (1M as it is now). Then I'd like it to compress and mail the log to an
> e-mail address I specify.
>
> I've got everything figured out how to do this, but I can't split the log.
>
> Is there a way to change the httpd.conf so that it doesn't combine the logs?
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>
Hi,
I didn't change anything on my RaQ3 but I can find single domain logs in
each site's directory
/home/sites/siteX/log/web.log
If you have such a log file, as well, you can write a short shell script and
put it into your crontab. There are various ways of sending mails. The
easiest, I think is to use the shell command 'mail'. If not familiar with
shell script syntax, If found a nice little how-to on
http://www.linuxnewbie.org (not only for newbies, in fact).
Regards,
Hendrik.