LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Logging? (https://www.linuxquestions.org/questions/slackware-14/logging-487499/)

TL_CLD 09-27-2006 03:31 PM

Logging?
 
/var/log holds a lot of different files, and it seems some of them aren't rotated automatically, or at least I haven't experienced it yet. I'm talking about:

btmp
dmesg
faillog
lastlog

Is this normal Slackware behavior, or should I do something about it?

Regards,
Thomas

RAdams 09-27-2006 03:34 PM

Quote:

Originally Posted by TL_CLD
/var/log holds a lot of different files, and it seems some of them aren't rotated automatically, or at least I haven't experienced it yet. I'm talking about:

btmp
dmesg
faillog
lastlog

Is this normal Slackware behavior, or should I do something about it?

Regards,
Thomas

!confirm

I echo his question.

dive 09-27-2006 04:35 PM

dmesg is remade every boot so it only holds current boot info. Don't know about the others sorry.

Michielvw 09-27-2006 08:05 PM

as far as I know and can tell

lastlog - keeps track of when the last time a user logged in (see man lastlog) so technically this shouldn't get to big unless you have tons of users on your system

faillog - keeps track of missed log in accounts.

I can't see a reason for them to rotate as they are most likely kept pretty small

RAdams 09-28-2006 09:23 AM

Quote:

Originally Posted by BlackPanther
as far as I know and can tell

lastlog - keeps track of when the last time a user logged in (see man lastlog) so technically this shouldn't get to big unless you have tons of users on your system

faillog - keeps track of missed log in accounts.

I can't see a reason for them to rotate as they are most likely kept pretty small

That makes sense. It reasonably satisfies my curiosity. Thanks.

TL_CLD 09-28-2006 09:52 AM

Thanks.. I'll rotate them by hand then. :)

Michielvw 09-28-2006 10:02 AM

if you want them to rotate manually .. you also might want to have a look at /etc/logrotate.d/ and see how files are rotated in there.


All times are GMT -5. The time now is 10:57 PM.