Elastix 1.6 "full" log rotation

Discussion in 'General' started by arrow1, Mar 2, 2011.

  1. arrow1

    Joined:
    Nov 21, 2010
    Messages:
    89
    Likes Received:
    0
    Elastix experts,

    I see that "full" log located in /var/log/asterisk is rotated and kept for last 5 days. Is there any way to extend that time lets say to keep rotated log for last 15 days ?

    Thank You
     
  2. arrow1

    Joined:
    Nov 21, 2010
    Messages:
    89
    Likes Received:
    0
    looks like

    /etc/logrotate.d :

    /var/log/asterisk/full {
    missingok
    rotate 15
    daily
    create 0640 asterisk asterisk
    postrotate
    /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
    endscript

    rotate "5" to "15" should do the job if want to keep files from last 15 days ....

    Am I doing that right?

    Thank You
     
  3. fmvillares

    Joined:
    Sep 8, 2007
    Messages:
    1,785
    Likes Received:
    0
    Re: Re:Elastix 1.6 "full" log rotation

    perfect +1
     

Share This Page