VMware Cloud Community
MariusRoma
Expert
Expert
Jump to solution

Deleting and limiting the number and size of vmware-x.log files

I discovered that some datastores contain a large number of large vmware-x.log files. They belong to critical production VMs that I cannot damage or stop for any reason.

Let me ask some questions on this subject:

  • Can I safely remove them while the related VM are powered on without any risk to damage or stop the VMs?
  • On page https://communities.vmware.com/thread/437249 I read that I can use two settings:
    • limit-log-number
    • limit-log-size

to control the number and size of vmware-x.log files: where can I set them? Can I set them at cluster or node level? What is it supposed to happen if I set them for a running VM?

Regards

Marius

Tags (2)
Reply
0 Kudos
1 Solution

Accepted Solutions
vNEX
Expert
Expert
Jump to solution

Hi Marius,

you will be able remove only already rotated vmwareXX.log files in VM directory NOT the actual one being used by VM.

Removing them can be considered as safe but think twice when you modify folder content of any running VM...

To control VM logging in terms of number of rotations and size or logs redirection follow this KB article:

VMware KB: Log rotation and logging options for vmware.log

Message was edited by: vNEX - sorry I overlook some questions:

Changes made to .vmx file will always take effect after next VM power on...

VM logging is not configurable at cluster or host level but you can spread this configuration using PowerCLI script or seal it to

the Template for any new deployed VM.

In addition to manipulation with .vmx files have a look at this KB:

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

_________________________________________________________________________________________ If you found this or any other answer helpful, please consider to award points. (use Correct or Helpful buttons) Regards, P.

View solution in original post

Reply
0 Kudos
1 Reply
vNEX
Expert
Expert
Jump to solution

Hi Marius,

you will be able remove only already rotated vmwareXX.log files in VM directory NOT the actual one being used by VM.

Removing them can be considered as safe but think twice when you modify folder content of any running VM...

To control VM logging in terms of number of rotations and size or logs redirection follow this KB article:

VMware KB: Log rotation and logging options for vmware.log

Message was edited by: vNEX - sorry I overlook some questions:

Changes made to .vmx file will always take effect after next VM power on...

VM logging is not configurable at cluster or host level but you can spread this configuration using PowerCLI script or seal it to

the Template for any new deployed VM.

In addition to manipulation with .vmx files have a look at this KB:

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

_________________________________________________________________________________________ If you found this or any other answer helpful, please consider to award points. (use Correct or Helpful buttons) Regards, P.
Reply
0 Kudos