LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Question about 2 files in /var/log (https://www.linuxquestions.org/questions/linux-newbie-8/question-about-2-files-in-var-log-42856/)

jimmmac 01-26-2003 03:37 PM

Question about 2 files in /var/log
 
Good afternoon.

I have 3 files in my /var/log that are quite large. I was wondering if I could >> these files to make them much smaller. The files are

wtmp
wtmp.1
lastlog

Thanks

Jim Macdonald

acid_kewpie 01-26-2003 03:40 PM

wel,l they are log files, delete them if you don't want them. are they growing all the time? if they are then it may be that your logrotate setup is failing. make sure it's runnning and that the entries in /etc/logrotate.d/ or /etc/logrotate.conf make sense (see the logrotate manpage for info on making these work diferently)

jimmmac 01-26-2003 05:10 PM

Hi Acid_kewpie.

Thanks for the info. I am looking into it. One file I am not sure about is the lastlog file. That is the biggest one. I tail -100 and it looks binary. So I am not sure if I can zero it out. Thanks again.

Jim

onurb 01-26-2003 05:24 PM

Logrotate zips and rotates your logs at 4.00 in the morning. If your computer is not on 24/7 you might want to use 'anacron' ( urpmi anacron ) A program that executes tasks that are "forgotten' by cron ( like logrotate ) because your computer was not on at the time they were supposed to run.

unSpawn 01-26-2003 07:19 PM

Wtmp and lastlog are both login (attempt) records, they're system files. *If you don't know what a file is for, and you suspect it to be part of a package, try "apropos <search term>", "whatis <search term>" or "man -f <search term>"and if there's any reference it'll show ya.


All times are GMT -5. The time now is 10:24 AM.