Solved

VMware ESX Server Events

Posted on 2014-07-21
5
336 Views
Last Modified: 2014-09-28
I noticed that when you reboot an ESXi Server, the previous events shown in vSphere client for that host are erased. Is there any way to configure the server to keep the events when the server is rebooted? or save the logs in a file on the ESXi server itself?
0
Comment
Question by:Harrris
5 Comments
 
LVL 12

Expert Comment

by:David Paris Vicente
Comment Utility
You can do this with syslog or change the logs to other location in ESXI 3.5 and 4.x you can find the related info in this links:KB1016621 or KB1019102
For ESXi 5.x KB2003322

Let us know if this helped.

Regards
David
0
 
LVL 1

Expert Comment

by:BenMitchell1979
Comment Utility
You'll need something to dump the files too - I'd recommend installing the Vmware Syslog Collector from the vCenter ISO.

After that you just need to point your ESXi hosts to it. Ether via Advanced options under configuration or via PowerCLI (which is WAY easier). You can even install it on your vcenter server (assuming storage space is available)

# esxcli system syslog config set -loghost=10.10.10.10  <-- Insert IP address of syslog collector here
# esxcli system syslog reload   <- Restarts syslog service so it will report to new server.

Or for a bunch of servers scripting is your friend!

connect-viserver MyVCServer.fqdn.com
foreach ($host in get-vmhost) {
get-advancedsetting -Name "Syslog.global.logHost" -entity $host.Name | set-advancedSetting -Value "MyVCServer.fqdn.com" -confirm false
get-advancedsetting -Name "Vpx.Vpxa.Config.log.level" -entity $host.Name | set-advancedSetting -Value "info" -confirm false
disconnect-viserver MyVCServer.fqdn.com

!! Be sure to replace MyVCServer.fqdn.com with your vCenters FQDN..  :)
0
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
Are you using the FREE version of ESXi ?

e.g. you've not paid any money to VMware for a License ?

I would change the log location to a shared storage devices, such as iSCSI or NFS datastore.
0
 

Author Comment

by:Harrris
Comment Utility
I am using the free version. Is this still supported? also, If I save the logs on a local datastore, I will still see the previous events in the corresponding vsphere client tab after the ESXi reboots? or I will have to open the file from the datastore to view the events?
Thanks
0
 
LVL 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 250 total points
Comment Utility
Tasks and Events will always disappear, because these are logged usually to an SQL database, when using VMware vSphere vCenter Server.

So this is normal for a FREE license and to be expected.

Tasks and Events, and Server Logs are different, although some Tasks and Events are written to system logs e.g. /var/log/vmkernel.log
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now