Re: Logs

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

 



Hi Justin,

Thanks for the reply. FYI I am using UNIX (freebsd).

Up tp this point, I have been using an sh script to rotate logs.

The logs in question are the access_log and error_log in each one of my (Apache) virtual hosts.

logrotate looks like the cats meow!

I have read the man page and it states to use wildcards with caution (as always). So I have one question:

Can I use a wildcard as such,

/home/*/logs/access_log

/home/*/logs/error_log

The '*' being the wildcard to denote the home dir for

virt_domain1.com
virt_domain2.ca
virt_domain3.net
...

-Grant

----- Original Message ----- From: "Justin Pasher" <justinp@xxxxxxxxxxxxxxxxxxx>
To: <users@xxxxxxxxxxxxxxxx>
Sent: Wednesday, September 10, 2008 10:18 PM
Subject: RE:  Logs


-----Original Message-----
From: Grant Peel [mailto:gpeel@xxxxxxxxxxxxx]
Sent: Wednesday, September 10, 2008 6:54 PM
To: users@xxxxxxxxxxxxxxxx
Subject:  Logs

Hi all,

I am investigating useing apache rotatelogs pipe. My servers have about
250
virtual domains each on them, so I am curious about a couple of things:

How are people in a similar setup handling remove logs (so they dont build
up forever), say after 2 months?

Does piping the data through the rotatelogs util slow down the server
much?

Have you considered using logrotate? I had never actually heard of
rotatelogs until now (my apache experience is primarily with Apache 1). I
would imagine that it would have a little bit of overhead (albeit a
relatively small amount, I hope). logrotate has a lot more options
available, and there's also a chance that it's already in use on your system
to rotate system logs in /var/log. Since it's run as a cron job, you only
experience the overheard (VERY small) when the script run each night

Of course, all of this assumes you are running in a *nix environment as
opposed to Windows. I'm not sure about the availability on Windows.

--
Justin Pasher


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





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