AstRecipes » Avoiding queue_log file rotation
If you run a call center, you will definitely want the log rotation susbsystem not to rotate your queue_log file along with the other Asterisk logs found in /var/log/asterisk. The queue_log file contains essential information on how the call-center is going that is being used by software like QueueMetricsThe majority of prebuilt Asterisk distributions will instead lotate that file together with the other Asterisk logs, and this may cause lost data if you do not have a backup. Disabling log rotation
Disabling log rotation is actually quite easy: go to /etc/logrotate.d and look for a file named asterisk. If you run TrixBox, you'll find something like:
/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
}
cat queue_log.5 >> queue_log
cat queue_log.4 >> queue_log
cat queue_log.3 >> queue_log
cat queue_log.2 >> queue_log
cat queue_log.1 >> queue_log
cat queue_log.now >> queue_log
Softlinks:
Home Page - Installing QueueMetrics - Installing the Asterisk GUI - Installing Queuemetrics on PBX-in-a-Flash - Compiling Asterisk 1.4 beta - Peering two Asterisk servers using IAX - QueueMetrics - Removing Asterisk - Script to convert music-on-hold to native formats - Monitoring Zaptel Hardware - Compiling Asterisk 1.2 with TDM400 and H323 - Installing QueueMetrics from scratch - Monitoring multiple Asterisk servers with QueueMetrics - Create an account - Utenti/Lenz73 - Licences - Compiling Asterisk 1.4 with TDM400 and H323 - Installing Queuemetrics on Debian - Add a recipe - Upgrading QueueMetrics licences - SandBox - Configuring a queue - Improving AstRecipes - Utenti/walmass - Misc links - UPDATING - Using a HT-488 with Asterisk - User stats - asterisk - QueueMetrics logs - Compiling Asterisk with OH323 - Managing agents that dynamically log-on - Compressing recorded calls to MP3 - Installing QueueMetrics on Fonality PBXtra - Utenti/peter-dean - Manually updating QueueMetrics - Utenti/timlitw - Connecting to FWD using IAX - Installing the Linksys PAP2-NA port adapter - Installing XC-AST - Optimizing QueueMetrics data access - Compiling Asterisk on EPIA with VIA C3 - Generic QueueMetrics startup script - Recording all outgoing traffic for some extensions - Installing XC-AST under Jetty - Connecting to Squillo using SIP - Simple queue and agent debug monitoring - Utenti/lostdave - Utenti/bg - Installing QueueMetrics beta through RPM
Home Page - Installing QueueMetrics - Installing the Asterisk GUI - Installing Queuemetrics on PBX-in-a-Flash - Compiling Asterisk 1.4 beta - Peering two Asterisk servers using IAX - QueueMetrics - Removing Asterisk - Script to convert music-on-hold to native formats - Monitoring Zaptel Hardware - Compiling Asterisk 1.2 with TDM400 and H323 - Installing QueueMetrics from scratch - Monitoring multiple Asterisk servers with QueueMetrics - Create an account - Utenti/Lenz73 - Licences - Compiling Asterisk 1.4 with TDM400 and H323 - Installing Queuemetrics on Debian - Add a recipe - Upgrading QueueMetrics licences - SandBox - Configuring a queue - Improving AstRecipes - Utenti/walmass - Misc links - UPDATING - Using a HT-488 with Asterisk - User stats - asterisk - QueueMetrics logs - Compiling Asterisk with OH323 - Managing agents that dynamically log-on - Compressing recorded calls to MP3 - Installing QueueMetrics on Fonality PBXtra - Utenti/peter-dean - Manually updating QueueMetrics - Utenti/timlitw - Connecting to FWD using IAX - Installing the Linksys PAP2-NA port adapter - Installing XC-AST - Optimizing QueueMetrics data access - Compiling Asterisk on EPIA with VIA C3 - Generic QueueMetrics startup script - Recording all outgoing traffic for some extensions - Installing XC-AST under Jetty - Connecting to Squillo using SIP - Simple queue and agent debug monitoring - Utenti/lostdave - Utenti/bg - Installing QueueMetrics beta through RPM



