Hi Tony, the answers to your first questions are yes and yes.  I am running 
Apache 2.2.16
 
Here is my full path to rotatelogs:
V:\Apache22\bin
 
Here is my full path to logs folder:
V:\Apache22\logs
 
Here are my current logs in logs folder:
access.log
access_comb.log
error.log
install.log
 
Here is portion of the config file, your recommended line is the last line:
 
#
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    CustomLog "logs/access.log" common
 
    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    CustomLog "logs/access_comb.log" combined
    TransferLog "| /Apache22/bin/rotatelogs -l -f 
/Apache22/logs/apache_access_log.%m-%d-%y-%I:%M:%S 86400"


>>> "Bennett, Tony" <bennett.t...@con-way.com> 11/12/2010 10:40 AM >>>
Patrick

Is "/Apache22/bin/rotatelogs" to full path to "rotatelogs" ...???
Is "/Apache22/logs" the full path to Apache's "logs" directory ..???

What version of Apache are you using????

Please show the context in your httpd.conf in which you specified rotatelog.

The example I provided was lifted from our httpd.conf (we are running V 22.10 
in production).
If you need a "greater" context, I can provide it for you.

As an FYI, here is a link to the Apache2.2 documentation of TransferLog (which 
is what we use):
    http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#transferlog


-tony

From: Patrick McCambridge [mailto:mcca...@fdny.nyc.gov] 
Sent: Friday, November 12, 2010 7:05 AM
To: users@httpd.apache.org
Subject: RE: [us...@httpd] Rotating logs

Hi Tony, finally had a chance to test this.  All I did was change the directory 
to reflect my actual directory, and I am getting this message (did some 
tweaking but can't get around this):

piped log program ' /Apache22/bin/rotatelogs -l -f 
/Apache22/logs/apache_access_log.%m-%d-%y-%I:%M:%S 86400' failed unexpectedly
Could not open log file '/Apache22/logs/apache_access_log.11-12-10-12:00:00' 
(The filename, directory name, or volume label syntax is incorrect.  )

>>> "Bennett, Tony" <bennett.t...@con-way.com> 11/5/2010 6:17 PM >>>
TransferLog "| /usr/local/apache/bin/rotatelogs -l -f 
/var/adm/syslog/apache_access_log.%m-%d-%y-%I:%M:%S 86400"



Confidentiality Notice:
This message may contain information that is
confidential or privileged.

If you are not the intended recipient,
Please advise the sender immediately and delete this message. 

---------------------------------------------------------------------
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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


Confidentiality Notice:
This message may contain information that is 
confidential or privileged.

If you are not the intended recipient, 
Please advise the sender immediately and delete this message.

Reply via email to