Yes sure, no problem. What I did was use the tmpfs system. This is a RAM file system and is very easy to use indeed. tmpfs ‘shadows’ real directories on your drive/card, and intercepts reads and writes, so instead of the read or write going to the SD card, it goes to the RAM file system instead and the SD card is not accessed at all.
All I did was edit the file /etc/fstab to ‘overlay’ the tmpfs file system on top of the log directories. Like, this, my gaetway has been up continuously since approximately October 2019 with no problems. I also set my gateway to reboot every Monday morning at 04:00. Why? Because the tmpfs file system is using RAM and if a process is writing a lot of stuff to the log directories, it could fill up the RAM. However, I can not see any evidence of this ever happening so maybe it is not required at all. Today is Wednesday and my machine has been up since 04:00 on Monday and looks very healthy indeed:
In the /etc/fstab file I simply added two lines (use
sudo nano /etc/fstab to edit the file)
It’s the last two lines that make the difference. There are some additional directories that you can add to the configuration, but I have just added
/var/log as you can see. Note: You need to reboot your machine after editing fstab.
There is a very good article (that also suggests other directories) here. Hope this helps.