LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   size of file /var/spool/plymouth/boot.log keeps growing (https://www.linuxquestions.org/questions/linux-newbie-8/size-of-file-var-spool-plymouth-boot-log-keeps-growing-4175536420/)

tigerhuang 03-11-2015 01:48 PM

size of file /var/spool/plymouth/boot.log keeps growing
 
Hi All,

I have Rsyslog 8.7 installed on the Redhat linux (Linux version 3.8.13-55.1.5.el6uek.x86_64 (mockbuild@ca-build44.us.oracle.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3)). So I don't need messages logged somewhere else.

I happened to notice the size of 2 files /var/log/boot.log and /var/spool/plymouth/boot.log kept growing. They are eating up my HDD space. I disabled file /var/log/boot.log in /etc/rsyslog.conf. Where can I do the same thing for file /var/spool/plymouth/boot.log?

Regards,

Robert

veerain 03-12-2015 11:48 PM

Why not just delete the file ' /var/spool/plymouth/boot.log' periodically (Cron).

unSpawn 03-13-2015 01:55 AM

Quote:

Originally Posted by veerain (Post 5331367)
Why not just delete the file ' /var/spool/plymouth/boot.log' periodically (Cron).

"Just" deleting logs is bound to give you headaches, besides they invented 'logrotate' for that kind of thing.


Quote:

Originally Posted by tigerhuang (Post 5330541)
Where can I do the same thing for file /var/spool/plymouth/boot.log?

No idea, all I can see is that Plymouth ('rpm -qi plymouth') does this on its own.

JeremyBoden 03-13-2015 03:53 PM

You can manage logs with logrotate (a background sub-system) which starts a new log periodically and compresses the old one.
For example:-
Code:

ls -lh /var/log
.....
-rw-r----- 1 root      adm        895K Mar 13 19:06 kern.log
-rw-r----- 1 root      adm        2.3M Mar  9 04:57 kern.log.1
-rw-r----- 1 root      adm        172K Mar  1 06:36 kern.log.2.gz
-rw-r----- 1 root      adm        393K Feb 23 02:15 kern.log.3.gz
-rw-r----- 1 root      adm        326K Feb 15 05:50 kern.log.4.gz
....



All times are GMT -5. The time now is 07:41 PM.