Var log folder contents

Started by meazz1, April 10, 2020, 04:00:21 AM

Previous topic - Next topic
April 10, 2020, 04:00:21 AM Last Edit: April 14, 2020, 03:05:26 AM by meazz1
In the /var/log folder there are many files I'm sure are old and not needed.
Is this ok to delete most of the old files?


Strange log directory content for an OPNsense. Looks like a Linux based Ubuntu installation - not OPNsense Freebsd.

OPNsense/Freebsd uses clog format, a binary circular rotation one. No deletions necessary due to fixed size and circular rotation.
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR

Quote from: hbc on April 10, 2020, 08:18:44 AM
Strange log directory content for an OPNsense. Looks like a Linux based Ubuntu installation - not OPNsense Freebsd.

OPNsense/Freebsd uses clog format, a binary circular rotation one. No deletions necessary due to fixed size and circular rotation.

Updated the screenshot. You're so right, it was my ubuntu /var/log folder, lol.

Most of these files are circular logs of fixed size... deleting them will just bring them back after reboot with the same size. Why are you worried about these files?


Cheers,
Franco

Quote from: franco on April 17, 2020, 01:37:14 PM
Most of these files are circular logs of fixed size... deleting them will just bring them back after reboot with the same size. Why are you worried about these files?


Cheers,
Franco

A little bit of concerns.
My disk usage is slowing growing. It was at 12% about 2 wks ago and it's at 14% now.
I know I have a long way to go but I was just wondering.
Only plugin I'm running is the sensei.

Here's a screenshot.


At least with elasticsearch database, sensei can consume quite much disc space in busy networks. I had several gigabytes.

Standard retention period is 7 days.
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR