QueueMetrics forum
QueueMetrics => General Asterisk configuration => Topic started by: jacobusvn on August 08, 2007, 17:07:52
-
Hi
I'm new to QueueMetrics and my problem is that you have to disable log rotate on the asterisk log files.
I have full logging enable to do debugging but the file gets really big and when I work in the full log file asterisk stop responding for a while.
There must be a way to still do a log rotate but not rotate the queue_log, as that is the most important file for QueueMetrics, or do I maybe miss something here?
I just need to rotate the asterisk full log every day.
Thanks
-
Of course you can rotate all files freely BUT the queue_log, QueueMetrics does not care about any other Asterisk-produced file.
In particular, inthe log rotation file, you use
/var/log/asterisk/full {
...
}
What it matters is NOT to use the wildcard *log, because that will rotate queue_log as well
-
I'm new to QueueMetrics and my problem is that you have to disable log rotate on the asterisk log files.
I have full logging enable to do debugging but the file gets really big and when I work in the full log file asterisk stop responding for a while.
There must be a way to still do a log rotate but not rotate the queue_log, as that is the most important file for QueueMetrics, or do I maybe miss something here?
If you are going to use the queue_log files directly then in order for you to retain historical data, you need to disable log rotation.
If this is a problem for you (as it was for me) then you need to move to logging queue data to a MySQL database by using qloaderd. If you take this approach, you can rotate your logs as much as you like since the queue_log file is no longer the primary data store.