BreadCrumbs: Asterisk Logs

Asterisk Logs

From Luke Jackson

(Difference between revisions)
Jump to: navigation, search
Revision as of 04:11, 14 May 2007 (edit)
Ljackson (Talk | contribs)
(Logrotate Configuration)
← Previous diff
Current revision (04:14, 14 May 2007) (edit)
Ljackson (Talk | contribs)
(Logrotate Configuration)
 
Line 3: Line 3:
<pre> <pre>
/var/log/asterisk/messages /var/log/asterisk/*log { /var/log/asterisk/messages /var/log/asterisk/*log {
 + create 0640 asterisk asterisk
 + daily
 + extension .txt
 +# mail root@localhost
 + missingok
 + nocompress
 +# notifempty
 + rotate 32
 + sharedscripts
 +# size 10M
 + postrotate
 + /usr/sbin/asterisk -rx 'logger reload' >/dev/null 2>/dev/null || true
 + endscript
 +}
 +
 +/var/log/asterisk/cdr-csv/*csv /var/log/asterisk/cdr-custom/*csv {
 + create 0640 asterisk asterisk
 + monthly
 + extension .txt
 +# mail root@localhost
 + missingok
 + nocompress
 +# notifempty
 + rotate 2
 + sharedscripts
 +# size 10M
 + postrotate
 + /usr/sbin/asterisk -rx 'logger reload' >/dev/null 2>/dev/null || true
 + endscript
 +}
 +</pre>
 +
 +<pre>
 +/var/log/asterisk/messages /var/log/asterisk/*log {
 + create 0640 asterisk asterisk
 + daily
 + extension .txt
 + mail root@localhost
 + missingok
 + nocompress
 + notifempty
 + rotate 64
 + sharedscripts
 +# size 10M
 + postrotate
 + /usr/sbin/asterisk -rx 'logger reload' >/dev/null 2>/dev/null || true
 + endscript
 +}
 +
 +/var/log/asterisk/full {
create 0640 asterisk asterisk create 0640 asterisk asterisk
daily daily

Current revision

Logrotate Configuration

/var/log/asterisk/messages /var/log/asterisk/*log {
    create 0640 asterisk asterisk
    daily
    extension .txt
#    mail root@localhost
    missingok
    nocompress
#    notifempty
    rotate 32
    sharedscripts
#    size 10M
    postrotate
        /usr/sbin/asterisk -rx 'logger reload' >/dev/null 2>/dev/null || true
    endscript
}

/var/log/asterisk/cdr-csv/*csv /var/log/asterisk/cdr-custom/*csv {
    create 0640 asterisk asterisk
    monthly
    extension .txt
#    mail root@localhost
    missingok
    nocompress
#    notifempty
    rotate 2
    sharedscripts
#    size 10M
    postrotate
        /usr/sbin/asterisk -rx 'logger reload' >/dev/null 2>/dev/null || true
    endscript
}
/var/log/asterisk/messages /var/log/asterisk/*log {
    create 0640 asterisk asterisk
    daily
    extension .txt
    mail root@localhost
    missingok
    nocompress
    notifempty
    rotate 64
    sharedscripts
#    size 10M
    postrotate
        /usr/sbin/asterisk -rx 'logger reload' >/dev/null 2>/dev/null || true
    endscript
}

/var/log/asterisk/full {
    create 0640 asterisk asterisk
    daily
    extension .txt
#    mail root@localhost
    missingok
    nocompress
#    notifempty
    rotate 32
    sharedscripts
#    size 10M
    postrotate
        /usr/sbin/asterisk -rx 'logger reload' >/dev/null 2>/dev/null || true
    endscript
}

/var/log/asterisk/cdr-csv/*csv /var/log/asterisk/cdr-custom/*csv {
    create 0640 asterisk asterisk
    monthly
    extension .txt
#    mail root@localhost
    missingok
    nocompress
#    notifempty
    rotate 2
    sharedscripts
#    size 10M
    postrotate
        /usr/sbin/asterisk -rx 'logger reload' >/dev/null 2>/dev/null || true
    endscript
}
Personal tools