/var/log/lastlog grow up 'til 90929125288?


(!) #1

NethServer Version: 7.5.1804 (final)

It’s quite large, is there a way to reduce it ?

Thanks,
Rémy.

PS : I weight far less …


(Rob Bosch) #2

I thought NethServer has something like logrotate active? The real question is: what makes your logs grow that fast and large?


(!) #3

I donno nothing bad append,
Load 1 / 5 / 15 minutes : 0.19 / 0.18 / 0.19
Uptime : 55 d 5 h 44 m

Only 45 records in its database ???


(Filippo Carletti) #4

This is perfectly fine, it’s a sparse file, it does not occupy disk space. It’s a FAQ:
http://www.noah.org/wiki/Lastlog_is_gigantic


(!) #5

sudo du -h /var/log/lastlog

44K /var/log/lastlog

Thanks Filippo.

(I know i wasn’t that big) :wink:


(Eddie Atherton) #6

But be aware that (most) backup programs will treat it as a regular file and so try to copy the inflated size.

Cheers.