Guest

Preview Tool

Cisco Bug: CSCut23957 - Syslog and MongoDB logs high space Usage filling /var Filesystem

Last Modified

Feb 10, 2017

Products (1)

  • Cisco Mobility Services Engine

Known Affected Releases

7.0.1.3

Description (partial)

Symptom:
syslog or mongo DB logs filling up /var/ filesystem

[root@rtpclabqps5g-cc02b ~]# df -h
Filesystem                       Size  Used Avail Use% Mounted on
/dev/mapper/vg_shiprock-lv_root  7.9G  2.0G  5.6G  27% /
tmpfs                            7.8G     0  7.8G   0% /dev/shm
/dev/sda1                        485M   32M  428M   7% /boot
/dev/mapper/vg_shiprock-lv_home  2.0G   68M  1.9G   4% /home
/dev/mapper/vg_shiprock-lv_var    85G   80G  294M 100% /var
[
[root@rtpclabqps5g-cc02b log]# rm -rf messages-20150222 messages-20150215 messages-20150208
[root@rtpclabqps5g-cc02b log]# rm -rf debug.log-20150222 debug.log-20150215 debug.log-20150208
[root@rtpclabqps5g-cc02b log]# df -h
Filesystem                       Size  Used Avail Use% Mounted on
/dev/mapper/vg_shiprock-lv_root  7.9G  2.0G  5.6G  27% /
tmpfs                            7.8G     0  7.8G   0% /dev/shm
/dev/sda1                        485M   32M  428M   7% /boot
/dev/mapper/vg_shiprock-lv_home  2.0G   68M  1.9G   4% /home
/dev/mapper/vg_shiprock-lv_var    85G   67G   14G  84% /var
[root@rtpclabqps5g-cc02b log]#

Conditions:
Syslog don't have maxsize and compress parameter

[root@rtpclabqps5g-cc01b logrotate.d]# more syslog
/var/log/debug.log
/var/log/cron
/var/log/maillog
/var/log/messages
/var/log/secure
/var/log/spooler
{
    sharedscripts
    postrotate
        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
    endscript
}
Bug details contain sensitive information and therefore require a Cisco.com account to be viewed.

Bug Details Include

  • Full Description (including symptoms, conditions and workarounds)
  • Status
  • Severity
  • Known Fixed Releases
  • Related Community Discussions
  • Number of Related Support Cases
Bug information is viewable for customers and partners who have a service contract. Registered users can view up to 200 bugs per month without a service contract.