Chuck Bunn
2005-Nov-15 08:26 UTC
[Asterisk-Users] Restore Asterisk log files after deleting...
Hi, I did something stupid - I deleted the Asterisk log files instead of copying empty information into the file (I know dumb) to clear out the data. I recreated the files with the same rights as before (644) using the asterisk user and group but asterisk does not appear to recognize them. Is there a way to get asterisk to use /var/log/asterisk/full and /var/log/asterisk/messages again... I restarted the server and Asterisk but nothing appears in the logs even though several SIP devices have logged in etc. (I know this as I was running the Asterisk console). Thanks
Matt Riddell
2005-Nov-15 23:45 UTC
[Asterisk-Users] Restore Asterisk log files after deleting...
Chuck Bunn wrote:> Hi, > > I did something stupid - I deleted the Asterisk log files instead of > copying empty information into the file (I know dumb) to clear out the > data. I recreated the files with the same rights as before (644) using > the asterisk user and group but asterisk does not appear to recognize > them. Is there a way to get asterisk to use /var/log/asterisk/full and > /var/log/asterisk/messages again... I restarted the server and Asterisk > but nothing appears in the logs even though several SIP devices have > logged in etc. (I know this as I was running the Asterisk console).Try removing the file entirely and restarting Asterisk. Failing that try logger rotate in the console. -- Cheers, Matt Riddell _______________________________________________ http://www.sineapps.com/news.php (Daily Asterisk News - html) http://freevoip.gedameurope.com (Free Asterisk Voip Community) http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)