Re: rotatelogs based on size and time?

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

 



Hello,

Thank you for such a prompt answer! I have some questions below.

Agnello George:
yes its possible
you would just need to add in your /etc/logrotate.conf  the following content :


"/websites/domain.com/logs/domain.com.sys.qualiproj.access_log"
/websites/domain.com/logs/domain.com.sys.qualiproj.error_log {
I would need to add "monthly" in here, wouldn't I?

rotate 4
size= 50
size=50M if I want to use megabytes?

sharedscripts
This will cause only one apache restart?

postrotate
/sbin/killall -HUP httpd
Is this the graceful way to restart apache?

Can I add "olddir" in here?
olddir = /path/to/dir

When set, do I understand correctly that it will set a directory where logs will be moved prior to being rotated?

endscript
}

i kind of written a small scrit to add /delete /edit the
logrotate.conf for virtual domains (  i give no grauntee that it will
work for you ) ( suggestion welcomed )

Thank you for all your input! It is really appreciated!

Yours,

--
Zbigniew Szalbot
www.LCWords.com

---------------------------------------------------------------------
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


[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