Re: Apache22 Logs rotation configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

You can use rotatelogs Apache's build in tool also :)

CustomLog "|bin/rotatelogs /var/logs/logfile.%Y-%m-%dÂ86400" common

http://httpd.apache.org/docs/2.0/programs/rotatelogs.html

2011/3/17 fedora <fedora@xxxxxxxx>
or use cronolog from http://cronolog.org

Apache config:

ErrorLog Â"|/usr/sbin/cronolog /etc/httpd/logs/bgna_error_log.%Y%m"
CustomLog "|/usr/sbin/cronolog /etc/httpd/logs/bgna_access_log.%Y%m" combined

Adapt it to needs.


suomi


On 2011-03-17 14:03, Igor GaliÄ wrote:


----- Original Message -----


Hello,

I want to configure Apache22 under FreeBSD 8.1 to write a different
log starting at mid-night and rename the old log-date

Can you give any ideas on how to do so? The safes possible method. I
had google but a little hesitant , Iâ m a newbie.

Use the system facillity, newsyslog, check out:
http://www.freebsd.org/cgi/man.cgi?newsyslog
http://www.freebsd.org/cgi/man.cgi?newsyslog.conf
/etc/newsyslog.conf

Thanks,

motty

i


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
Â" Â from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




--
ÃdvÃzlettel / Best Regards / Mit freundlichen GrÃÃenÂ
Tsaby


ÂÂ()()Â Â Â (\__/)Â ÂÂ (\__/)
Â( '.' )Â ÂÂ (O.o )Â Â (='.'=)
(")_(")Â Â (> < )Â Â (")_(")

These are three Bunnies.
Copy Bunnies into your signature to help them on theirs way to world domination!


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux