httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Khandelwal, Ankit" <Ankit.K.Khandel...@tatatechnologies.com>
Subject [users@httpd] Rotate Logs | Number of Files | File Size
Date Tue, 26 Feb 2019 08:53:10 GMT
Hello All,

I have configured rotatelogs inside httpd.conf at location:

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog "logs/error.log"

ErrorLog "| D:/Apache24/bin/rotatelogs.exe -l D:/Apache24/logs/error_apache_%Y-%m-%d-%H_%M_%S.log
10KB"

The above command helps to split log file by 10 KB. However, I wish to use number of files
using -n as mentioned :

https://httpd.apache.org/docs/current/programs/rotatelogs.html

Can anyone help me with exact syntax to use number of files in addition to file size of 10
KB.

Thanks & Regards,
Ankit Khandelwal

********************************************************************************************************************************************
Email Disclaimer: The contents of this e-mail and any attachment(s) may contain confidential
or privileged information for the intended recipient(s). Unintended recipients are prohibited
from taking action on the basis of information in this e-mail and using or disseminating the
information, and must notify the sender and delete it from their system. Tata Technologies
will not accept responsibility or liability for the accuracy or completeness of, or the presence
of any virus or disabling code in this e-mail.
***********************************************************************************************************************************************

Mime
View raw message