Re: [asterisk-users] ASterisk CDR file Master.csv

2010-08-27 Thread Ujjval Karihaloo
Thx Dean. I will be interested in testing that as well.



-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Dean Hoover
Sent: Friday, August 27, 2010 11:03 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] ASterisk CDR file Master.csv


On 8/27/2010 11:55 AM, Danny Nicholas wrote:
> *From:* asterisk-users-boun...@lists.digium.com
> [mailto:asterisk-users-boun...@lists.digium.com] *On Behalf Of *Tim Nelson
> *Subject:* Re: [asterisk-users] ASterisk CDR file Master.csv
>
> - "Ujjval Karihaloo"  wrote:
>>
>
>>How can we set the CDR Master file to rollover at say 30 Meg and create
> a new one
>
> Use 'logrotate'.
>
> --Tim
>
> To "improve" on your answer, set up a shell to check the size of CDR
> master and do a logrotate (/usr/sbin/asterisk -rx "logger rotate") when
> the condition is met. GIYF on this one.
>

I use logrotate to help with the files in /var/log/asterisk, but it does 
nothing with Master.csv.  I am working on a script described earlier 
that if the file gets larger than a certain number of lines to move them 
off to another file and compress for space.

If that is something anyone else is interested in, let me know and I'll 
post it when it's working.

-- 
Dean Hoover
Milwaukee, Wisconsin

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] ASterisk CDR file Master.csv

2010-08-27 Thread Dean Hoover

On 8/27/2010 11:55 AM, Danny Nicholas wrote:
> *From:* asterisk-users-boun...@lists.digium.com
> [mailto:asterisk-users-boun...@lists.digium.com] *On Behalf Of *Tim Nelson
> *Subject:* Re: [asterisk-users] ASterisk CDR file Master.csv
>
> - "Ujjval Karihaloo"  wrote:
>>
>
>>How can we set the CDR Master file to rollover at say 30 Meg and create
> a new one
>
> Use 'logrotate'.
>
> --Tim
>
> To “improve” on your answer, set up a shell to check the size of CDR
> master and do a logrotate (/usr/sbin/asterisk –rx “logger rotate”) when
> the condition is met. GIYF on this one.
>

I use logrotate to help with the files in /var/log/asterisk, but it does 
nothing with Master.csv.  I am working on a script described earlier 
that if the file gets larger than a certain number of lines to move them 
off to another file and compress for space.

If that is something anyone else is interested in, let me know and I'll 
post it when it's working.

-- 
Dean Hoover
Milwaukee, Wisconsin

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] ASterisk CDR file Master.csv

2010-08-27 Thread Danny Nicholas
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Tim Nelson
Subject: Re: [asterisk-users] ASterisk CDR file Master.csv

 

- "Ujjval Karihaloo"  wrote: 
> 

>How can we set the CDR Master file to rollover at say 30 Meg and create a
new one 

Use 'logrotate'.

--Tim

To "improve" on your answer, set up a shell to check the size of CDR master
and do a logrotate (/usr/sbin/asterisk -rx "logger rotate") when the
condition is met.  GIYF on this one.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] ASterisk CDR file Master.csv

2010-08-27 Thread Ujjval Karihaloo
How can we set the CDR Master file to rollover at say 30 Meg and create a new 
one

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] ASterisk CDR file Master.csv

2010-08-27 Thread Tim Nelson
- "Ujjval Karihaloo"  wrote: 
> 
> How can we set the CDR Master file to rollover at say 30 Meg and create a new 
> one 






Use 'logrotate'. 

--Tim -- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users