I am trying to standardize our logs.
I see that currently logs are just all over the place, with various number of logs and sizes.
I am using our log rotate size to the size of the VMFS parition so we get the most out of the blocks (2MB)
I want to name the log files the name of the host or vmware label.
Is this possible to automate using some variable?
from the above link i see: log.fileName = "myVMlog"
but i'm hoping for some kind of log.fileName = <hostname> option?
is it possible via the deploy wizard? using customized specifications manager (i only see sysprep options)
thanks for any help
GD
IMHO I suggest to use a central syslog server to collect and re-organize your logs.
For example with syslog-ng you can simple create custom log file with your patterns.
Andre
I don't know that there is any way to change the location of the VM guest vmware.log files other than directly editing the VMX file. There may be some scripts (search through the automation tools forums) that would allow you to modify the VMX files across your VMs to change the destination to a central location and move old log files from the VM folders and consolidate them in the new location.
You can manually change the VMX file.
Edit each VMX file and change
log.fileName = "vmware.log"
to
log.fileName =/vmfs/volumes/datastore/logs/vmname/vmname.log
are the individual guest vmware.log files forward to syslog also?
i was under the impression that it was only the server log files.
Ony the system files. The VM files are generate by each VM process.
Andre