Author Topic: A question with queue_log rotation.  (Read 4707 times)

bluekite

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
    • Email
A question with queue_log rotation.
« on: October 28, 2007, 14:54:12 »
I want to ask a question with queue_log rotation.

I'm testing a demo of queuemetrics 1.4.2 version.

I found "queue_log, queue_log.1,queue_log.2, queue_log.3, queue_log.4,
queue_log.5" six files in "/var/log/asterisk" Directory on my asterisk server, but only "queue_log" text in qloader.pl file, I want to know ,when do flowing, how qloaderd know which log file is currently log file? how can I do?

Code: [Select]
/var/log/asterisk/*log {
   missingok
   rotate 5
   weekly
   create 0640 asterisk asterisk
   postrotate
       /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
       /etc/init.d/qloaderd restart > /dev/null 2> /dev/null
   endscript
}

Excuse me for my bad english.

I am a chinese, Do you understand chinese? ;)

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: A question with queue_log rotation.
« Reply #1 on: October 29, 2007, 11:36:03 »
Hello Bluekite,
I am frankly a bit short on Chinese at the moment ;D , but your English is just fine.

The qloaderd will simply use the last "queue_log" file; if you do a rotation of that file, you should restart qloaderd as well (after Asterisk logger rotate) to tell it it is to read the new file.