Re: [asterisk-users] How to roll-over / move / rotate an Asterisk Master.csv call detail record (CDR) file every 15 minutes

2012-12-05 Thread Earl Ruby
On 12/04/2012 08:48 PM, Paul Belanger wrote: Not so, logroate actually supports strftime %s, so you get the number of seconds since the Epoch. Easily converted into any datetime format you wish. What's the logrotate dateformat string that generates MMDDHHMISS? According to the man page,

Re: [asterisk-users] How to roll-over / move / rotate an Asterisk Master.csv call detail record (CDR) file every 15 minutes

2012-12-04 Thread Earl Ruby
Paul: Four reasons not to use logrotate: 1. logrotate does not provide log rotation every 15 minutes. 2. logrotate will not create unique file names unless you use a date format in the name (file names with a .nnn extension get reused over time), but since logrotate only supports MMDD,

Re: [asterisk-users] How to roll-over / move / rotate an Asterisk Master.csv call detail record (CDR) file every 15 minutes

2012-12-04 Thread Earl Ruby
That's what you actually use? In production? On 12/04/2012 12:51 PM, Tzafrir Cohen wrote: On Tue, Dec 04, 2012 at 10:05:47AM -0800, Earl Ruby wrote: Paul: Four reasons not to use logrotate: 1. logrotate does not provide log rotation every 15 minutes. apt-get install logtail logtail2

[asterisk-users] How to roll-over / move / rotate an Asterisk Master.csv call detail record (CDR) file every 15 minutes

2012-12-03 Thread Earl Ruby
If you are trying to provide CDR files to a billing service, such as WebCDR.com, you need to provide files containing your latest call data every 15 minutes or so. I wrote a script and a cron job that will create a new CDR file every 15 minutes with the latest CDR records, without interrupting