On Wed, 3 Mar 2010, Stephen John Smoogen wrote:
Currently logs are 'shipped' to log01 which uses some
syntactic magic
to put various logs into hostname appropriate directories.. eg logs
from xen10 go into /var/log/hosts/xen10/. However sometimes this does
not work correctly. hostnames are found via reverse lookups and if no
hostname is found then the IP address is found. So anytime there is a
DNS outage or problem, logs get shoved into directories like
/var/log/hosts/10.5.126.10/
In order to clean up the various spazes, I have moved all the files
into appropriate hostnames and made symbolic links so that IP address
points to hostname.
Would it be possible to have puppet or something spit out a list of
ips->hostnames from our dns records to a static nss_hosts or other hosts file to put on
log01
so it never gets to a place where it loses a hostname?
In a past life the logging infrastructure I worked on did just that.
-sv