Author:
Per Stenebo
Created:
2017-10-18 09:50:43
Modified:
2018-02-15 07:37:41
en

log2ram

| github | github issue 24 |

Usage: log2ram {start|stop|write}

Edit config file:

sudo nano /etc/log2ram.conf

Check current size: df -h

Filsystem      Storlek Använt Ledigt Anv% Monterat på
...
log2ram            90M    41M    50M  45% /var/log
...

 

If you have problems that log2ram cronjob sends daily email, even if no error, you can redirect standard output (stdout) to logfile instead. Open cron file with the editor nano, as root:

sudo nano /etc/cron.daily/log2ram

Modify command from:

/usr/sbin/log2ram write

to

/usr/sbin/log2ram write >> /var/log.hdd/log2ram.log

or if you don't feel the need to put stdout to a logfile at all:

/usr/sbin/log2ram write > /dev/null

Ctrl+x to exit and Enter to save changes.

If error occurs, stderr output will still be emailed by cron.

 

Comments to page log2ram