I created some scripts to logrotate. I am having a problem. After I do it, I am sending kill -HUP to the process its not using the newly created messages file again. Could someone help me out with how I can rotate asterisk's log's without killing the process? ..o-------------------------------------------------------o. Brian Fertig NOC/Network Engineer Planet Telecom, Inc. Tampa, FL Office This email was scanned by: Mcafee GroupShield ---------------- CONFIDENTIAL DISCLAMER ---------------- All information provided in this email is considered confidential and proprietary of Planet Telecom, Inc. and Telecenter Inc. Use of this information by anyone other than the recipient or sender will be considered in breach of agreement.
> Could someone help > me out with how I can rotate asterisk's > log's without killing the process?Does restarting the syslog service help? # service syslog restart or # /etc/init.d/syslog restart
Hi Asterisk@Home uses the following file: /var/log/asterisk/*log { missingok rotate 5 weekly create 0640 asterisk asterisk postrotate /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null endscript } /var/log/asterisk/full { missingok rotate 5 daily create 0640 asterisk asterisk postrotate /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null endscript } /var/log/asterisk/cdr-csv/*csv { missingok rotate 5 monthly create 0640 asterisk asterisk } It connects to the running asterisk and issues the command "logger reload". Regards Hilton Datatex Dynamics CC Web site datatex.co.za Email to hilton@datatex.co.za Tel +27215924033 Fax +27215924077 The use of the Datatex e-mail facility is not permitted for the distribution of chain letters or offensive email of any nature whatsoever. Datatex hereby distances itself from and accepts no liability in respect of the unauthorised use of its e-mail facility or the sending of e-mail communications for other than strictly business purposes. Datatex furthermore disclaims liability for any unauthorised instruction for which permission was not granted. Any recipient of an unacceptable communication, a chain letter or offensive material of any nature is requested to report it to abuse@datatex.co.za. ----- Original Message ----- From: Brian C. Fertig To: Asterisk Users Mailing List - Non-Commercial Discussion Sent: Thursday, June 30, 2005 4:22 PM Subject: [Asterisk-Users] Logrotate I created some scripts to logrotate. I am having a problem. After I do it, I am sending kill -HUP to the process its not using the newly created messages file again. Could someone help me out with how I can rotate asterisk's log's without killing the process? ..o-------------------------------------------------------o. Brian Fertig NOC/Network Engineer Planet Telecom, Inc. Tampa, FL Office This email was scanned by: Mcafee GroupShield ---------------- CONFIDENTIAL DISCLAMER ---------------- All information provided in this email is considered confidential and proprietary of Planet Telecom, Inc. and Telecenter Inc. Use of this information by anyone other than the recipient or sender will be considered in breach of agreement. _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: lists.digium.com/mailman/listinfo/asterisk-users
Asterisk doesn't use the syslog daemon tho does it? I thought it did internal logging to a file. ..o-------------------------------------------------------o. Brian Fertig NOC/Network Engineer Planet Telecom, Inc. Tampa, FL Office -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Geoff Manning Sent: Thursday, June 30, 2005 10:30 AM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [Asterisk-Users] Logrotate> Could someone help > me out with how I can rotate asterisk's > log's without killing the process?Does restarting the syslog service help? # service syslog restart or # /etc/init.d/syslog restart This email was scanned by: Mcafee GroupShield ---------------- CONFIDENTIAL DISCLAMER ---------------- All information provided in this email is considered confidential and proprietary of Planet Telecom, Inc. and Telecenter Inc. Use of this information by anyone other than the recipient or sender will be considered in breach of agreement.
> > Asterisk doesn't use the syslog daemon tho does it? I thought it > did internal logging to a file. >My mistake, you are correct (both of you actually!)
thank you I will give that a try. ..o-------------------------------------------------------o. Brian Fertig NOC/Network Engineer Planet Telecom, Inc. Tampa, FL Office -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Hilton Williams Sent: Thursday, June 30, 2005 10:47 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Logrotate Hi Asterisk@Home uses the following file: /var/log/asterisk/*log { missingok rotate 5 weekly create 0640 asterisk asterisk postrotate /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null endscript } /var/log/asterisk/full { missingok rotate 5 daily create 0640 asterisk asterisk postrotate /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null endscript } /var/log/asterisk/cdr-csv/*csv { missingok rotate 5 monthly create 0640 asterisk asterisk } It connects to the running asterisk and issues the command "logger reload". Regards Hilton Datatex Dynamics CC Web site datatex.co.za Email to hilton@datatex.co.za Tel +27215924033 Fax +27215924077 The use of the Datatex e-mail facility is not permitted for the distribution of chain letters or offensive email of any nature whatsoever. Datatex hereby distances itself from and accepts no liability in respect of the unauthorised use of its e-mail facility or the sending of e-mail communications for other than strictly business purposes. Datatex furthermore disclaims liability for any unauthorised instruction for which permission was not granted. Any recipient of an unacceptable communication, a chain letter or offensive material of any nature is requested to report it to abuse@datatex.co.za. ----- Original Message ----- From: Brian C. Fertig To: Asterisk Users Mailing List - Non-Commercial Discussion Sent: Thursday, June 30, 2005 4:22 PM Subject: [Asterisk-Users] Logrotate I created some scripts to logrotate. I am having a problem. After I do it, I am sending kill -HUP to the process its not using the newly created messages file again. Could someone help me out with how I can rotate asterisk's log's without killing the process? ..o-------------------------------------------------------o. Brian Fertig NOC/Network Engineer Planet Telecom, Inc. Tampa, FL Office This email was scanned by: Mcafee GroupShield ---------------- CONFIDENTIAL DISCLAMER ---------------- All information provided in this email is considered confidential and proprietary of Planet Telecom, Inc. and Telecenter Inc. Use of this information by anyone other than the recipient or sender will be considered in breach of agreement. _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: lists.digium.com/mailman/listinfo/asterisk-users This email was scanned by: Mcafee GroupShield ---------------- CONFIDENTIAL DISCLAMER ---------------- All information provided in this email is considered confidential and proprietary of Planet Telecom, Inc. and Telecenter Inc. Use of this information by anyone other than the recipient or sender will be considered in breach of agreement.