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 Paul Belanger
On 12-12-04 12:59 AM, Earl Ruby wrote: 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

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 Danny Nicholas
Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] How to roll-over / move / rotate an Asterisk Master.csv call detail record (CDR) file every 15 minutes On 12-12-04 12:59 AM, Earl Ruby wrote: If you are trying to provide CDR files to a billing service, such as WebCDR.com

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 Paul Belanger
On 12-12-04 10:02 AM, Danny Nicholas wrote: IIRC log rotate only rolls the files in /var/log/asterisk, not /var/log/asterisk/cdr-csv You need to configure logroate with the path and filename. -- Paul Belanger | PolyBeacon, Inc. Jabber: paul.belan...@polybeacon.com | IRC: pabelanger (Freenode)

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 Danny Nicholas
-Commercial Discussion Subject: Re: [asterisk-users] How to roll-over / move / rotate an Asterisk Master.csv call detail record (CDR) file every 15 minutes On 12-12-04 10:02 AM, Danny Nicholas wrote: IIRC log rotate only rolls the files in /var/log/asterisk, not /var/log/asterisk/cdr-csv You need

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 Logan Bibby
I have a huge logrotate config file and I use Webmin to manage it all. Actually, Webmin is a good all-around system management tool, in my opinion. On Dec 4, 2012 9:12 AM, Paul Belanger paul.belan...@polybeacon.com wrote: On 12-12-04 10:02 AM, Danny Nicholas wrote: IIRC log rotate only rolls

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 Tzafrir Cohen
On Tue, Dec 04, 2012 at 09:17:39AM -0600, Danny Nicholas wrote: Elaborate please. When does this feature come into effect? man logrotate.conf #? Just list the files you want to rotate in /etc/logrotate.d/asterisk (or whereever). -- Tzafrir Cohen icq#16849755

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 Danny Nicholas
@lists.digium.com Subject: Re: [asterisk-users] How to roll-over / move / rotate an Asterisk Master.csv call detail record (CDR) file every 15 minutes On Tue, Dec 04, 2012 at 09:17:39AM -0600, Danny Nicholas wrote: Elaborate please. When does this feature come into effect? man logrotate.conf

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 A J Stiles
On Tuesday 04 December 2012, Logan Bibby wrote: I have a huge logrotate config file and I use Webmin to manage it all. Actually, Webmin is a good all-around system management tool, in my opinion. Just not on a box with an outside-world IP address, though . -- AJS Answers come *after*

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 Logan Bibby
It is facing the outside world, but I just use SSH's port forwarding. :) On Dec 4, 2012 10:43 AM, A J Stiles asterisk_l...@earthshod.co.uk wrote: On Tuesday 04 December 2012, Logan Bibby wrote: I have a huge logrotate config file and I use Webmin to manage it all. Actually, Webmin is a

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 Tzafrir Cohen
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 - print log file lines that have not been read Every 15 minutes use it to get the new lines

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 -

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 Paul Belanger
On 12-12-04 01:05 PM, Earl Ruby wrote: Paul: Four reasons not to use logrotate: 1. logrotate does not provide log rotation every 15 minutes. Sure it does, you can invoke it using crontab, like you do for your script. 2. logrotate will not create unique file names unless you use a date

[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