VMware Cloud Community
gdavid
Enthusiast
Enthusiast

VM guest logs

I am trying to standardize our logs.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=818274...

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

Tags (4)
0 Kudos
5 Replies
AndreTheGiant
Immortal
Immortal

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

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
DSTAVERT
Immortal
Immortal

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.

-- David -- VMware Communities Moderator
0 Kudos
DSTAVERT
Immortal
Immortal

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

-- David -- VMware Communities Moderator
0 Kudos
gdavid
Enthusiast
Enthusiast

are the individual guest vmware.log files forward to syslog also?

i was under the impression that it was only the server log files.

0 Kudos
AndreTheGiant
Immortal
Immortal

Ony the system files. The VM files are generate by each VM process.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos