SIP debug on for weeks/month?

I’m trying to troubleshoot a pesky hangup issue that only happens infrequently and isn’t immediately reproducable. So I want to enable SIP Debug but really need to leave it on for a long time. Is this going to most likely cause a problem?

Thanks

Just log space. Make sure logrotate works

Ok Thanks. The default FreePBX distro logrotate configured should be sufficient or would it make sense to alter it? It looks like default doesn’t enable compression or force rotation by size.

[[email protected]]# vi /etc/logrotate.d/asterisk
/var/log/asterisk/queue_log {
        daily
        missingok
        rotate 30
        notifempty
        sharedscripts
        create 0640 asterisk asterisk
}

/var/spool/mail/asterisk
/var/log/asterisk/messages
/var/log/asterisk/event_log
/var/log/asterisk/full
/var/log/asterisk/dtmf
/var/log/asterisk/fail2ban {
        daily
        missingok
        rotate 7
        notifempty
        sharedscripts
        create 0640 asterisk asterisk
        postrotate
        /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
        endscript
}
#This comment is to fix rpm file replacing
#Config file built on Fri Feb 17 16:58:15 EST 2017

This seems to be working fine. Currently asterisk log folder looks like this;

[[email protected]]# ls -alh /var/log/asterisk/
total 864M
drwxrwxr-x.  4 asterisk asterisk 4.0K Sep 13 14:04 .
drwxr-xr-x. 13 root     root     4.0K Sep  9 03:28 ..
-rw-r--r--   1 asterisk asterisk  432 Sep  1 00:02 backup.log
drwxrwxr-x.  2 asterisk asterisk 4.0K Feb 17  2017 cdr-csv
drwxrwxr-x.  2 asterisk asterisk 4.0K Feb 17  2017 cdr-custom
-rw-r-----   1 asterisk asterisk 2.4M Sep 13 15:02 fail2ban
-rw-r-----   1 asterisk asterisk 4.6M Sep  7 03:26 fail2ban-20180907
-rw-r-----   1 asterisk asterisk 4.7M Sep  8 03:46 fail2ban-20180908
-rw-r-----   1 asterisk asterisk 4.0M Sep  9 03:28 fail2ban-20180909
-rw-r-----   1 asterisk asterisk 3.9M Sep 10 03:43 fail2ban-20180910
-rw-r-----   1 asterisk asterisk 4.6M Sep 11 03:27 fail2ban-20180911
-rw-r-----   1 asterisk asterisk 4.8M Sep 12 03:29 fail2ban-20180912
-rw-r-----   1 asterisk asterisk 4.6M Sep 13 03:36 fail2ban-20180913
-rw-rw-r--   1 asterisk asterisk  12M Nov  6  2015 freepbx_dbug
-rw-rw-r--   1 asterisk asterisk  42K Jun 16  2015 freepbx_dbug-20150616
-rw-rw-r--   1 asterisk asterisk  46K Jun 17  2015 freepbx_dbug-20150617
-rw-rw-r--   1 asterisk asterisk  47K Jun 18  2015 freepbx_dbug-20150618
-rw-rw-r--   1 asterisk asterisk  47K Jun 19  2015 freepbx_dbug-20150619
-rw-rw-r--   1 asterisk asterisk 116K Jun 20  2015 freepbx_dbug-20150620
-rw-rw-r--   1 asterisk asterisk  24K Jun 21  2015 freepbx_dbug-20150621
-rw-rw-r--   1 asterisk asterisk  25K Jun 22  2015 freepbx_dbug-20150622
-rw-rw-r--   1 asterisk asterisk  582 Nov  6  2015 freepbx_debug
-rw-rw-r--.  1 asterisk asterisk 680K Aug  8  2014 freepbx_debug-20140929
-rw-r-----   1 asterisk asterisk  79M Sep 13 15:02 freepbx.log
-rw-rw-r--   1 asterisk asterisk 103M Feb  5  2018 freepbx.log-20180205
-rw-rw-r--   1 asterisk asterisk 104M Feb 26  2018 freepbx.log-20180226
-rw-rw-r--   1 asterisk asterisk 103M Mar 20 03:36 freepbx.log-20180320
-rw-rw-r--   1 asterisk asterisk 103M Apr 10 03:11 freepbx.log-20180410
-rw-rw-r--   1 asterisk asterisk 102M May  1 03:35 freepbx.log-20180501
-rw-rw-r--   1 asterisk asterisk 101M May 22 03:24 freepbx.log-20180522
-rw-r-----   1 asterisk asterisk 101M Aug 20 03:06 freepbx.log-20180820
-rw-rw-r--   1 asterisk asterisk 9.4M Jun 15 09:46 freepbx_security.log
-rw-r-----   1 asterisk asterisk 2.0M Sep 13 14:59 full
-rw-r-----   1 asterisk asterisk 2.9M Sep  7 03:27 full-20180907
-rw-r-----   1 asterisk asterisk 2.7M Sep  8 03:46 full-20180908
-rw-r-----   1 asterisk asterisk  47K Sep  9 03:28 full-20180909
-rw-r-----   1 asterisk asterisk  45K Sep 10 03:43 full-20180910
-rw-r-----   1 asterisk asterisk 2.2M Sep 11 03:28 full-20180911
-rw-r-----   1 asterisk asterisk 2.3M Sep 12 03:29 full-20180912
-rw-r-----   1 asterisk asterisk 1.3M Sep 13 03:36 full-20180913
-rw-rw-r--   1 asterisk asterisk  185 May 30  2017 presence.log
-rw-rw-r--   1 asterisk asterisk 122K Nov  6  2015 prosody_debug.log
-rw-rw-r--   1 asterisk asterisk  28K Nov  4  2015 prosody.log
-rw-r-----   1 asterisk asterisk 3.9K Sep 13 14:55 queue_log
-rw-r-----   1 asterisk asterisk 4.3K Aug 14 19:15 queue_log-20180815
-rw-r-----   1 asterisk asterisk 4.8K Aug 15 19:49 queue_log-20180816
-rw-r-----   1 asterisk asterisk 4.5K Aug 16 19:14 queue_log-20180817
-rw-r-----   1 asterisk asterisk 4.8K Aug 17 19:14 queue_log-20180818
-rw-r-----   1 asterisk asterisk  278 Aug 18 11:25 queue_log-20180819
-rw-r-----   1 asterisk asterisk   40 Aug 19 03:50 queue_log-20180820
-rw-r-----   1 asterisk asterisk 5.7K Aug 20 19:47 queue_log-20180821
-rw-r-----   1 asterisk asterisk 5.5K Aug 21 17:45 queue_log-20180822
-rw-r-----   1 asterisk asterisk 4.7K Aug 22 18:20 queue_log-20180823
-rw-r-----   1 asterisk asterisk 4.1K Aug 23 17:18 queue_log-20180824
-rw-r-----   1 asterisk asterisk 4.0K Aug 24 18:55 queue_log-20180825
-rw-r-----   1 asterisk asterisk  221 Aug 25 11:06 queue_log-20180826
-rw-r-----   1 asterisk asterisk   40 Aug 26 03:34 queue_log-20180827
-rw-r-----   1 asterisk asterisk 5.7K Aug 27 19:50 queue_log-20180828
-rw-r-----   1 asterisk asterisk 2.0K Aug 28 18:02 queue_log-20180829
-rw-r-----   1 asterisk asterisk 4.4K Aug 29 19:37 queue_log-20180830
-rw-r-----   1 asterisk asterisk 5.4K Aug 30 18:50 queue_log-20180831
-rw-r-----   1 asterisk asterisk 4.3K Aug 31 17:51 queue_log-20180901
-rw-r-----   1 asterisk asterisk   99 Sep  1 10:49 queue_log-20180902
-rw-r-----   1 asterisk asterisk   40 Sep  2 03:11 queue_log-20180903
-rw-r-----   1 asterisk asterisk   40 Sep  3 03:35 queue_log-20180904
-rw-r-----   1 asterisk asterisk 6.0K Sep  4 16:50 queue_log-20180905
-rw-r-----   1 asterisk asterisk 6.4K Sep  5 19:34 queue_log-20180906
-rw-r-----   1 asterisk asterisk 5.2K Sep  6 17:43 queue_log-20180907
-rw-r-----   1 asterisk asterisk 3.6K Sep  7 16:25 queue_log-20180908
-rw-r-----   1 asterisk asterisk  400 Sep  8 11:54 queue_log-20180909
-rw-r-----   1 asterisk asterisk   40 Sep  9 03:28 queue_log-20180910
-rw-r-----   1 asterisk asterisk 6.0K Sep 10 19:24 queue_log-20180911
-rw-r-----   1 asterisk asterisk 4.8K Sep 11 19:24 queue_log-20180912
-rw-r-----   1 asterisk asterisk 4.2K Sep 12 19:38 queue_log-20180913
-rw-rw-r--   1 asterisk asterisk    0 Sep  9  2015 recording_report
-rw-rw-r--   1 asterisk asterisk 276K Aug 13 14:32 restapps.log
-rw-rw-r--   1 asterisk asterisk 1.4M May 29  2017 ucp_err.log
-rw-rw-r--   1 asterisk asterisk 1.5M May 29  2017 ucp_forever.log
-rw-rw-r--   1 asterisk asterisk 313K Sep 13 14:35 ucpnode_err.log
-rw-rw-r--   1 asterisk asterisk 872K Sep 13 14:35 ucpnode_out.log
-rw-rw-r--   1 asterisk asterisk  97K May 29  2017 ucp_out.log
-rw-rw-r--   1 asterisk asterisk 1.3K Apr  9  2014 wakeup.log
-rw-rw-r--   1 asterisk asterisk 9.7K Aug 13 14:35 xmpp_err.log
-rw-rw-r--   1 asterisk asterisk  45K Aug 13 14:35 xmpp_out.log

I think you’ll be fine. Just wanted you to ensure it was on instead of being surprised later down the road.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.