QueueMetrics > MySQL storage and Qloaderd/Uniloader
A question with queue_log rotation.
(1/1)
bluekite:
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: ---/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
}
--- End code ---
Excuse me for my bad english.
I am a chinese, Do you understand chinese? ;)
QueueMetrics:
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.
Navigation
[0] Message Index
Go to full version