change from daily logs to one log file

john2

New member
Joined
May 18, 2010
Messages
1
hello

currently my server records daily logs for five days in a row, then deletes any logs older than that

i would like one big log file where the old data doesnt get deleted

how can this be done? ive tried google searching for the last hour... i think it might require a change to httpd.conf but i dont know what to write and cant find the information

please help me if you can
thank you very much
 
You probably don't want to have a big log file, it makes it hard for your statistical software to make it's calculations. Instead you can adjust the amount of log files stored on the server - this is actually done in your DA Administrator Settings area:

http://<yourhost>:2222/CMD_ADMIN_SETTINGS

Look for "Keep Number of Apache Log Backups " - the default is "5". You can just increase this to whatever number you want.

Alternatively, you can run a cron backup script which takes your apache log backup files and copies them to another location - which you can keep a permanent store of them - you could even do this via FTP or RSYNC.
 
Most of our servers run syslogd, the system logging daemon. Read up on it; you can use it to make lots of adjustments to how you log.

Jeff
 
Back
Top