[asterisk-users] cdr-custom/Master.csv rotation

Mark Hamilton mark.h at cage151.com
Sun Jun 15 11:41:08 CDT 2008


I actually use it on a couple other boxes and I agree with you completely.
Just didn't want to use it on this box which I'm trying to keep as secure as
possible.

I'm a fan of Webmin too. :)


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Steve Totaro
Sent: June 15, 2008 12:35 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] cdr-custom/Master.csv rotation

In my installations, I have total control via Webmin and can create
and alter existing log file rotations via an easy to follow GUI.
YMMV.  Maybe you have a dev box you can try it on?  Installation is
simple.  I recommend putting it on a non-standard port and not using
the default username admin.  You could also install it but don't have
it run as a service.

Webmin is nice for a good many things nix, I am a fan.  Just secure it
as much as possible.

Thanks,
Steve T

On Sun, Jun 15, 2008 at 12:11 PM, Mark Hamilton <mark.h at cage151.com> wrote:
> Would that help the rotation of Master.csv too?
>
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Steve Totaro
> Sent: June 15, 2008 11:51 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] cdr-custom/Master.csv rotation
>
> While maybe a little too non-cli for some folks, I like to use
> Webmin's GUI for setting up log rotation.  Nice, quick, easy, hard to
> get it wrong....
>
> Thanks,
> Steve Totaro
>
> On Sun, Jun 15, 2008 at 11:48 AM, Mark Hamilton <mark.h at cage151.com>
wrote:
>> Yup, drive. Or in Gavin's case "Fly".
>> Really appreciate your help, Darryl. Thanks a lot.
>>
>> I'm attempting to use this now as is, but Tzafrir points out that this
> might
>> not rotate Master.csv in /cdr-custom. In such a case, what would I need
to
>> do?
>>
>> Thanks again,
>> Mark.
>>
>> -----Original Message-----
>> From: asterisk-users-bounces at lists.digium.com
>> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Darryl
> Dunkin
>> Sent: June 14, 2008 11:49 PM
>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>> Subject: Re: [asterisk-users] cdr-custom/Master.csv rotation
>>
>> It's like asking for directions, and someone tells you to drive,
>> useless.
>>
>> Here is what we do here:
>> Create /etc/logrotate.d/asterisk:
>> /var/log/asterisk/asterisk-verbose /var/log/asterisk/messages
>> /var/log/asterisk/debug /var/log/asterisk/queue_log {
>>    daily
>>    rotate 7
>>    compress
>>    missingok
>>    notifempty
>>    sharedscripts
>>    postrotate
>>        /usr/local/bin/log_rot_ast
>>    endscript
>> }
>>
>> /usr/local/bin/log_rot_ast contains:
>> #!/bin/sh
>> /usr/sbin/asterisk -rx 'logger reload' >/dev/null 2>&1
>>
>> -----Original Message-----
>> From: asterisk-users-bounces at lists.digium.com
>> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Mark
>> Hamilton
>> Sent: Saturday, June 14, 2008 19:05
>> To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
>> Subject: Re: [asterisk-users] cdr-custom/Master.csv rotation
>>
>> Gavin,
>>
>>
>> I really do appreciate your one-liner. But is there any more insight
>> into
>> this? I know I have to use Logrotate, but I have no idea how I can
>> actually
>> get it done.
>>
>> I'm going to try and figure it out right now, but for the benefit of the
>> list and archives, it just might be good if solutions could be posted
>> here
>> too.
>>
>> Thanks,
>> Mark.
>>
>> PS: Remember, many people get their answers from mailing list archives.
>> So
>> we'd rather get them solved than getting the same question on the list 3
>> months later. :)
>>
>>
>> -----Original Message-----
>> From: asterisk-users-bounces at lists.digium.com
>> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Gavin
>> Henry
>> Sent: June 13, 2008 4:51 PM
>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>> Subject: Re: [asterisk-users] cdr-custom/Master.csv rotation
>>
>> 2008/6/13 Mark Hamilton <mark.h at cage151.com>:
>>> Hi,
>>>
>>>
>>>
>>> How can I rotate /var/log/asterisk/cdr-custom/Master.csv nightly by
>> date?
>>>
>>
>> Logrotate on a *nix box.
>>
>> --
>> http://www.suretecsystems.com/services/openldap/
>>
>> _______________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> 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 --
>>
>> 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 --
>>
>> 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 --
>>
>> 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 --
>
> 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 --
>
> 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 --

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




More information about the asterisk-users mailing list