RE: [users@httpd] Log File Name

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

 



Yes, I am using vhost, but just the vhost name wont be enough because it
is the same vhost across 4 machines. 

-----Original Message-----
From: Bill Jones [mailto:tetragondzein@xxxxxxxxx] 
Sent: Monday, May 15, 2006 10:47 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: [users@httpd] Log File Name

On 5/15/06, Michael Elias <melias@xxxxxxxxx> wrote:
> I have a webfarm using a common httpd.conf for four machines connected
to a
> SAN. I would like to find a way to name the logfiles with the hostname
to
> identify what machine they came from.

> I tried passing a shell variable like below;
>
> CustomLog    "| /usr/sbin/rotatelogs /var/log/httpd/$HOSTNAME.%Y%m%d
86400"
> combined

> CustomLog    "| /usr/sbin/rotatelogs /var/log/httpd/%V.%Y%m%d 86400"
> combined

Ae you using VHost sections?  if so you will need to name each
individual log file the host name -- if not you are out of luck.  I
dont know of another way to name them.

-- 
WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/

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