OPNsense Forum

English Forums => General Discussion => Topic started by: meazz1 on April 10, 2020, 04:00:21 AM

Title: Var log folder contents
Post by: meazz1 on April 10, 2020, 04:00:21 AM
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?

(https://lh3.googleusercontent.com/BA300h_80YjMbctk5EMhYpAeVdtJClsptL0s5tFGt_1RNMh00tsgfV3fhK9Jh8rDEhpX2DHmbfZByqv1K5hemDx3N3MbDeeV1JW36SMA9fjVqafYGFs9yIDfDIoIJFWfYElViTgs=w2400)
Title: Re: Var log folder contents
Post by: 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.
Title: Re: Var log folder contents
Post by: meazz1 on April 14, 2020, 03:07:19 AM
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.
Title: Re: Var log folder contents
Post by: 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
Title: Re: Var log folder contents
Post by: meazz1 on April 17, 2020, 04:04:06 PM
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.

(https://lh3.googleusercontent.com/ikyR5CzDRY6RU9lP11EgpVfckSw-A6xwWt-mdOqNxLkfPeA0mzyLQZ5XHHMJKRILzcO87id8BNMZd4WSPaNVxKDx3a0_YNBOf-Y2p5xf9HfOXpshI3-RGmVsWgcpIJreBNju0JQk=w2400)
Title: Re: Var log folder contents
Post by: hbc on April 17, 2020, 09:54:53 PM
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.