Author Topic: Asterisk log rotating  (Read 5855 times)

jacobusvn

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
    • Email
Asterisk log rotating
« 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

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Asterisk log rotating
« Reply #1 on: August 09, 2007, 15:52:32 »
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

Code: [Select]
/var/log/asterisk/full {
     ...
}

What it matters is NOT to use the wildcard *log, because that will rotate queue_log as well

rjch

  • Newbie
  • *
  • Posts: 20
  • Karma: 2
    • View Profile
Re: Asterisk log rotating
« Reply #2 on: September 09, 2007, 12:53:51 »
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.