Categories: General ITVMware

Real-time view of ESX Logs in the Service Console

A collegue of mine just gave a me a few tips on how to view the logfiles on an ESX Host in Real-time. Normally I would export all of the logs via the VIC or the vm-support command. But this limits me to only seeing what has happened, not what is currently happening.

Using the VMware Infrastructure Client, you can view some of the logs in real-time, but there is only a small amount of logs to choose from.

So how is it done? tail

  • tail -f <logfile location/name>

This will display the logfile you wish to view in Real-time. You can also use;

  • tail -n 100 <logfile location/name>

This would show the last 100 lines of the logfile. You can change the number accordingly.

  • tail -F <logfile location/name>

This reloads the file when rotated.

Simon Long

View Comments

  • Maybe nice to do an article on where the logs are and what they do as an addition to this. I found a nice one:
    /var/log/vmware/esxupdate.log
    It shows the progress of update manager when updating your esx servers. Useful when it seems hung at 33% remediating.

  • Love the tail command seen a collegue using it on a Solaris host some time ago and thought I'd give it ago on the ESX console, been using it ever since, really useful for trouble shooting management agents etc.

  • Tail's cool but I prefer to uses less as I find it's more of a one-stop shop for devling into log files.

    With less you can open the file you want to take a look at, move up and down it (unlike more), then if you want some real time action just hit Ctrl+f. This puts less into realtime mode. Once you've had your fix of realtime updates, just hit ctrl+c and your back to viewing the file. Very cool.

    On a seperate note be warned that having an excessive amount of log files open for real-time updates can have a detremental effect on the service consoles performance.

    Great site by the way :-)

    Steve

Share
Published by
Simon Long

Recent Posts

Google Cloud VMware Engine @ VMworld 2021

Another VMworld is upon us!!! Sadly, it's only virtual again this year. However, that does…

3 years ago

Google Cloud VMware Engine – Learning Resources

As part of my recent move to Google, I'm working on quickly getting up to…

3 years ago

Hey Google!

I am delighted to announce the next chapter in my career. Today is my first…

3 years ago

EP13 – Defending Remotely

In episode thirteen of The VCDX Podcast, I am joined by two special guests who…

3 years ago

Getting Started With Oracle Cloud VMware Solution (OCVS) – Migrating Workloads Using VMware HCX

In my recent ‘Getting started with Oracle Cloud VMware Solution (OVCS)’ post; Getting Started With…

3 years ago

Getting Started With Oracle Cloud VMware Solution (OCVS) – Connecting To An On-Premises Environment

In my recent ‘Getting started with Oracle Cloud VMware Solution (OVCS)’ post; Getting Started With…

3 years ago