/var/log/asterisk - Full files

Hi,

I am having a problem with my asterisk / freepbx where by the /var/log/asterisk directory has huge full.0, full.1, full.2 files.

-rw-rw-r-- 1 asterisk asterisk 2073818363 Jan 21 16:24 full
-rw-rw-r-- 1 asterisk asterisk 2147483647 Jun 19 2007 full.0
-rw-rw-r-- 1 asterisk asterisk 2147483647 Nov 12 2007 full.1
-rw-rw-r-- 1 asterisk asterisk 2147483647 Mar 15 2011 full.10
-rw-rw-r-- 1 asterisk asterisk 2147483647 Apr 8 2011 full.11
-rw-rw-r-- 1 asterisk asterisk 2147483647 May 10 2011 full.12
-rw-rw-r-- 1 asterisk asterisk 2147483647 Jun 30 2011 full.13
-rw-rw-r-- 1 asterisk asterisk 2147483647 Sep 1 2011 full.14
-rw-rw-r-- 1 asterisk asterisk 2147483647 Sep 30 2011 full.15
-rw-rw-r-- 1 asterisk asterisk 2147483647 Oct 16 2011 full.16
-rw-rw-r-- 1 asterisk asterisk 2147483647 Nov 13 2011 full.17
-rw-rw-r-- 1 asterisk asterisk 2147483647 Jan 4 2012 full.18
-rw-rw-r-- 1 asterisk asterisk 2147483647 Jan 12 2012 full.19
-rw-rw-r-- 1 asterisk asterisk 2147483647 Jan 24 2012 full.20
-rw-rw-r-- 1 asterisk asterisk 2147483647 Mar 7 2012 full.21
-rw-rw-r-- 1 asterisk asterisk 2147483647 Aug 31 2012 full.22
-rw-rw-r-- 1 asterisk asterisk 2147483647 Mar 8 2013 full.23
-rw-rw-r-- 1 asterisk asterisk 2147483647 Aug 9 13:04 full.24
-rw-rw-r-- 1 asterisk asterisk 2147483647 Apr 17 2009 full.4
-rw-rw-r-- 1 asterisk asterisk 2147483647 Sep 14 2009 full.5
-rw-rw-r-- 1 asterisk asterisk 2147483647 Feb 22 2010 full.6
-rw-rw-r-- 1 asterisk asterisk 2147483647 Jul 15 2010 full.7
-rw-rw-r-- 1 asterisk asterisk 2147483647 Dec 16 2010 full.8
-rw-rw-r-- 1 asterisk asterisk 2147483647 Feb 5 2011 full.9

If I look at system information and monitor the free space on /dev/sda2 partition it is constantly dropping down in size. Every time I refresh the page, the free space will just drop and the ‘full’ file increases

What could this be?

Any help would be appreciated

Thanks

You have an ineptly set up logrotate system. The configuration files are

/etc/logrotate.conf and possibly in it’s “drop” directory /etc/logrotate.d/

Thanks for your reply. Unfortunately we had nothing to do with the initial setup of this system, it was inherited.We have little knowledge on the system also. The logrotate.conf file has the following content:

[b][i]# see “man logrotate” for details

rotate log files weekly

weekly

keep 4 weeks worth of backlogs

rotate 4

create new (empty) log files after rotating old ones

create

uncomment this if you want your log files compressed

#compress

RPM packages drop log rotation information into this directory

include /etc/logrotate.d

no packages own wtmp – we’ll rotate them here

/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}

system-specific logs may be also be configured here.[/i][/b]

What do you suggest I change in here? We probably only need 2/3 days worth of logs…

Thanks for your help so far

You should have something like :-

/var/log/asterisk/full {
missingok
rotate 3
daily
create 0640 asterisk asterisk
postrotate
/usr/sbin/asterisk -rx ‘logger reload’ > /dev/null 2> /dev/null
endscript
}

/var/log/asterisk/cdr-csv/*csv {
missingok
rotate 12
monthly
create 0640 asterisk asterisk
}

in /etc/logrotate.d/asterisk