logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Question on rotatelogs
Author
3786.asif



Joined: 01 Nov 2010
Posts: 2

PostPosted: Mon 01 Nov '10 17:59    Post subject: Question on rotatelogs Reply with quote

Hi Can anyone please tell me what is the use of rotatelogs? I have put the following line in http.conf

CustomLog "|bin/rotatelogs.exe logs/sample.%Y-%m-%d.log 30" common

When I start the server, it creates a sample.X-Y-Z.log and logs the server activity? What I dont understand is , what does it do?

Thanks,
Asif
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Mon 01 Nov '10 18:36    Post subject: Reply with quote

eq

<IfModule log_config_module>
<IfModule log_rotate_module>
RotateLogs On
RotateLogsLocalTime On
RotateInterval 86400 60
</IfModule>
</IfModule>

SetEnvIf Request_URI "(\.php|\.html|\.htm)$" logme
SetEnvIf Request_URI "/$" logme

#Log only PHP
CustomLog S:/log/apache/page_name.%m_%d_%Y-.access.log combined env=logme

#Logall request
CustomLog S:/log/apache/page_name.%m_%d_%Y-.access.log combined
Back to top
3786.asif



Joined: 01 Nov 2010
Posts: 2

PostPosted: Mon 01 Nov '10 18:46    Post subject: Question on rotatelogs Reply with quote

Hi I didn't get you what you are saying? can you please tell me what rotatelogs program does?
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Mon 01 Nov '10 19:30    Post subject: Reply with quote

Hmm i not read all Smile

Rotate log just create log file eq per day not one big log file

mysite.com-20-09-1985.log
mysite.com-21-09-1985.log
mysite.com-22-09-1985.log

So you had seperated log files per one day, you can config to had log per hour or month
Back to top


Reply to topic   Topic: Question on rotatelogs View previous topic :: View next topic
Post new topic   Forum Index -> Apache