naijin Posted January 3, 2008 Share Posted January 3, 2008 Hi, is it possible to set up Apache to use multiple log files instead of a single one? I need a separate log file for each day. Can it be done without perl, etc.? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/84305-splitting-log-by-date/ Share on other sites More sharing options...
trq Posted January 3, 2008 Share Posted January 3, 2008 You could easily write a script to archive them and run it everyday via cron. Quote Link to comment https://forums.phpfreaks.com/topic/84305-splitting-log-by-date/#findComment-429321 Share on other sites More sharing options...
effigy Posted January 3, 2008 Share Posted January 3, 2008 Cronolog. Quote Link to comment https://forums.phpfreaks.com/topic/84305-splitting-log-by-date/#findComment-429333 Share on other sites More sharing options...
naijin Posted January 3, 2008 Author Share Posted January 3, 2008 CustomLog "|bin/rotatelogs logs/split_logs/ex%y%m%d.log 86400" extended seems to work Quote Link to comment https://forums.phpfreaks.com/topic/84305-splitting-log-by-date/#findComment-429535 Share on other sites More sharing options...
naijin Posted January 3, 2008 Author Share Posted January 3, 2008 Strange ... I'm now getting the following errors repeatedly: File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2) Character set '#48' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file Quote Link to comment https://forums.phpfreaks.com/topic/84305-splitting-log-by-date/#findComment-429607 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.