WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Hardware Options
    • Hardware Reviews
    • Lab Deployment Scripts
    • Nested Virtualization
    • Homelab Podcasts
  • VMware Nostalgia
  • Apple

A Hidden vSphere 5.1 Gem - Forwarding Virtual Machine Logs (vmware.log) to Syslog Part 2

07.10.2013 by William Lam // 7 Comments

In Part 1 I showed how you can forward virtual machine logs to ESXi syslog using an advanced virtual machine setting that was introduced in vSphere 5.1. A caveat with this solution is that the ESXi syslog file contains both system logs as well as virtual machine logs which is not very ideal from an isolation perspective. With virtual machine logs being quite verbose, if you are not forwarding logs to a remote syslog server, important system events can easily be rotated out of the local logs.

To work around this caveat, we can create a new logger specifically for handling virtual machine logs within the ESXi syslog client. You can view the existing logger types by looking in /etc/vmsyslog.conf.d directory. You will need to create a new logger configuration file which I named vmx.conf and it should contain the following:

[vmsyslog-logger]
# unique id for this logger
id = vmx
# description of this logger
descr = VMX Logs
# idents this logger is interested in
idents = vmx
# output file (e.g. foo == /var/log/foo.log)
file = vmx
# file logger class
fclass = FileLoggerSyslog
# network logger class
nclass = NetworkFilterSyslogTimestamp

Here is a screenshot of of my configuration file and noticed the highlighted text in yellow is what needs to be modified:

Note: Ensure that idents property matches the vmx.log.syslogID string specified for your virtual machines. This also means you will not be able to specify the virtual machine's name for the advanced setting, but will need to keep it generic so it can be filtered by the logger.

Once you have saved the vmx.conf configuration file, you will need to reload the ESXi syslog client for the changes to go into effect by running the following ESXCLI command:

esxcli system syslog reload

You now should see a new log file in /var/log called vmx.log which will contains only virtual machine logs:

If your ESXi host is forwarding its logs to vCenter Log Insight, you can easily create a filter for the keyword "vmx" in the log source or whatever string you decided to set it to if you are not using the default.

One final caveat to be aware of now is that the custom syslog logger (vmx.conf) will not persist after a system reboot. To preserve this file, you can either automatically re-create the file during bootup and reload syslog client using this article here OR create a custom VIB using this article here.

Categories // Uncategorized Tags // syslog, vC Log, vCenter Log Insight, vmsyslog, vmware.log, vmx, vSphere 5.1

A Hidden vSphere 5.1 Gem - Forwarding Virtual Machine Logs (vmware.log) to Syslog Part 1

07.08.2013 by William Lam // 17 Comments

Using the new vCenter Log Insight product, you can easily forward application logs from various products within the vCloud Suite for easy analysis and troubleshooting. However, one very important set of logs that we have not been able to collect in the past is the virtual machine logs (vmware.log) which are stored in the working directory of a virtual machine. These logs can be extremely useful from a VMware GSS perspective such as when a virtual machine panics, or if you need to rebuild the .VMX configuration file using these logs or for even general VM auditing purposes.

A recent conversation that I had with Daniel de Sao Jose, who works in our VMware GSS organization reminded of a neat little vSphere 5.1 feature that Daniel had shared with me awhile back. The feature allows you to configure a virtual machine to forward its vmware.log to ESXi's syslog file as well as storing them in the virtual machine's working directory. At the time, there were still a few open questions that required some additional testing and I made a note of this on my ever growing to-do list. I finally around to this and finish up the testing.

UPDATE 1 (04/25/18) - In ESXi 6.7, the ability to forward a VM's vmware.log to an external syslog server also been restored and along with the change, enabling this configuration has been simplified. Instead of having multiple entries to enable the feature and specifying a unique string, you now only have to add a single entry which is vmx.log.syslogID to your VM. The value should be a unique string identifier that the VMX associates with the VM in the syslog. For example, if I use the value of "foo", then the VMX ID will be replaced with "foo" when searching through your syslog entries.

UPDATE 2 (05/04/18) - In ESXi 6.5, 6.5 Update 1 & 6.5 Update 2, the ability to forward a VM's vmware.log to an external syslog server has also been restored and along with the change, enabling this configuration has also been simplified. Simliar to ESXi 6.7, you now only have to add a single entry which is vmx.log.syslogID to your VM. The only difference is that the unique string provided WILL NOT replace the VMX ID in the syslog entry. If you desire the original behavior, you will need to use vSphere 6.7.

To enable this feature, you will need to add the following advanced virtual machine setting:

vmx.log.destination = "syslog-and-disk"

This of course can be enabled using either the vSphere Web Client or vSphere C# Client as well as automated, take a look at this article for more details.

Here is a screenshot showing showing the contents of the vmware.log in the ESXi host's syslog which is located in /var/log/syslog:

Note: The vmware.log is only generated when a virtual machine is powered on.

You also have the option of disabling the local vmware.log from being created in the virtual machine's working directory and only forwarded to ESXi host's syslog. To do so, you would change the advanced virtual machine setting to the following:

vmx.log.destination = "syslog"

By default, the log entries will be identified by the keyword vmx and the specific virtual machine's process ID such as vmx[5313]. However, this is not very user friendly and would still require you to query the VM PID to get the virtual machine name. This can be a challenge if you are viewing the logs from a centralized syslog server such as vCenter Log Insight where you potentially could have logs being forwarded from hundreds if not thousands of ESXi hosts.

To help with this, you can specify the string in which the virtual machine will identify itself when forwarding its logs using the following advanced virtual machine setting:

vmx.log.syslogID = SOME STRING

It made the most sense to me to set this to the name of the virtual machine, so you can easily identify the source of the logs. Here is a screenshot showing the name of the virtual machine instead of the generic "vmx" string.

If you have configured your ESXi host to forward its logs to vCenter Log Insight, you can see how easy it is to view individual virtual machine logs with a click of a button isolating on the syslog source.

One caveat that I would like to mention with this solution is that you are now storing all virtual machine logs in the ESXi hosts syslog file which is also logging other things about the ESXi host. This would cause the local logs to rotate much more frequently on the ESXi host due to the verbosity when powering on and off a virtual machine. This may not be an issue if you are forwarding to a remote syslog server, but ideally it would be nice to have separate log file primarily for the virtual machine logs. In Part 2 of this article, we will take a look at how we can accomplish this by extending ESXi's logger component.

Categories // Automation, ESXi, Security Tags // syslog, vC Log, vCenter Log Insight, vmsyslog, vmware.log, vmx, vSphere 5.1

Which Vendor Has A vSphere Web Client Plugin?

06.10.2013 by William Lam // 25 Comments

It's no secret that going forward, VMware's new vSphere Web Client will be the primary graphical interface for interacting with vSphere and other solutions within the vCloud Suite. This is regardless of whether the interface is using FLEX, HTML5 or some other framework, that is not the the topic of discussion, so please do not ask 🙂

VMware has also made this very clear in the recent vSphere 5.1 release notes:

In vSphere 5.1, all new vSphere features are available only through the vSphere Web Client. The traditional vSphere Client will continue to operate, supporting the same feature set as vSphere 5.0, but not exposing any of the new features in vSphere 5.1.

vSphere 5.1 and its subsequent update and patch releases are the last releases to include the traditional vSphere Client. Future major releases of VMware vSphere will include only the vSphere Web Client.

The vSphere Web Client was first introduced with the release of vSphere 5.0 with limited virtual machine and host capabilities. In vSphere 5.1, it was completely revamped to bring the large majority of functionality that we have all been used to in the vSphere C# Client and VMware will continue to close this gap and bring other improvements with future releases of vSphere.

As with any major change, this will not happen overnight and will take time for VMware, customers and partners to transition over. Just take a look at the transition from classic ESX to ESXi, it took several years for that to really sink in through the various updates and it is no longer a question or concern anymore.

A common request that I have heard from customers regarding the new vSphere Web Client is the availability of 3rd party vendor plugins. I have found it quite difficult to find all the plugins that are available and I bet customers would love to see a consolidated list in one place that they can search through. Well, I decided to do some research as well as leverage my Twitter followers to help me build out the complete list of vSphere Web Client plugins. I have broken the list by VMware, Partners, Scripted (legacy) and Unreleased vSphere Web Client plugins. I have also tried to include links to each of the 3rd party plugins so you can easily get more information about each of them.

If you are a customer and you do not see a specific vendor plugin, I highly recommend you reach out to your vendor and provide them feedback, this includes VMware. The more feedback our partners receive, the better chance you will get a vSphere Web Client plugin or any other feature for that matter!

If there are other vSphere Web Client plugins that you know of, please leave a comment or reply back on twitter with #webclientplugin and I will update the blog post.

VMware vSphere Web Client Plugins

  • Horizon View Manager 5.2 
  • vCenter Operations Manager (badge information)
  • vCenter Orchestrator
  • vFabric Elastic Memory for Java (EM4J)
  • vSphere Data Protection
  • vSphere Infrastructure Navigator
  • vSphere Replication
  • vSphere Update Manager (Available as of vSphere 5.1 Update 1)
  • vSphere Big Data Extensions
  • OpenStack
  • vCloud Hybrid Service 
  • Onyx
  • ESXTop
  • PowerActions
  • vSphere Site Recovery Manager

3rd Party Vendor vSphere Web Client Plugins

  • Cisco UCS
  • Cisco Nexus 1000v
  • HP Insight Control Integrator
  • PureStorage
  • VCE Vision Intelligent Operations
  • Fujitsu Eternus Storage
  • SolidFire
  • PernixData
  • EMC Virtual Storage Integrator (VSI)
  • Dell Compellent Storage Center
  • Veeam Backup & Replication
  • IBM Upwards Integration Modules 
  • Tintri
  • NexentaConnect for VMware VSAN
  • NetApp Virtual Storage Console (VSC)
  • Dell Virtual Storage Manager
  • X-IO ISE
  • Juniper Networks
  • Seagate Nytro
  • Nimble

Scripted vSphere Web Client Plugins (not "native" plugins but legacy C# Scripted method)

  • vSphere Storage Appliance
  • vCenter Support Assistance
  • Emulex
  • Zerto
  • StorTrends

Unreleased vSphere Web Client Plugins

  • Hitachi (HDS)

Community vSphere Web Client Plugins

  • Custom Attributes Plugin

If you are interested in learning more about the new vSphere Web Client including videos and demos or looking to develop your own vSphere Web Client, please take a look at the additional resources below.

  • vSphere Web Client HTML5 Bridge (NEW)
  • vSphere Web Client Introduction Videos and Demos
  • vSphere Web Client SDK
  • vSphere Web Client SDK Hands On Lab

Categories // vSphere, vSphere Web Client Tags // plugin, vSphere 5.1, vsphere web client

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 18
  • Next Page »

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • VCF 9.0 Hardware Considerations 05/30/2025
  • VMware Flings is now available in Free Downloads of Broadcom Support Portal (BSP) 05/19/2025
  • VMUG Connect 2025 - Minimal VMware Cloud Foundation (VCF) 5.x in a Box  05/15/2025
  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
  • Quick Tip - Validating Broadcom Download Token  05/01/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025