/var/log simply GONE

Netopia

Diamond Member
Oct 9, 1999
4,793
4
81
Hey guys,

Earlier this week I started getting error emails from a cron job on one of my personal servers. It was complaining that the log file it was supposed to be reporting on didn't exist.

I ssh'ed into the box and was shocked to see that /var/log was no longer in existence! This box is on a public IP address, but behind a hardware firewall with only POP, SMTP, IMAP, HTTP and HTTPS open to the world. I downloaded a couple things (like chkrootkit) and scanned for rootkits and the like, but found nothing.

With the exception of the 'log' directory being gone, the machine seems to be operating as normal... no disk space mysteriously missing... no unusual spiking of the CPU or anything else.

I'd done a complete backup of /var about two weeks earlier, so I restored the old 'log' directory and things started to be written to like normal again. Nothing suspicious has shown up in any of the logs since.

This directory is on the same partition with /, so there isn't a chance that the partition went wonky (if a partition had been mounted just for /var/log) and unmounted.

Any ideas? Anyone ever seen something like this before?

Joe
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Setup the box to syslog to a remote server and see if anything appears in the remote logs, if anything's on the machine it could be cleaning up the local logs.
 

QED

Diamond Member
Dec 16, 2005
3,428
3
0
I would normally say look in your utmp and wtmp log files to see who has logged in lately (and from where)... but obviously they are gone.

It's a long shot... but have you looked at the .history files of your user accounts to see if any of them has been used recently?