Solved

VMware ESX Server Events

Posted on 2014-07-21
5
350 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
ID: 40209470
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
ID: 40209546
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 120
ID: 40209716
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
ID: 40210747
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 120

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 250 total points
ID: 40211010
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 Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

One of the most frustrating experiences a help desk technician will ever encounter is when a customer comes to them with a solution of their own invention and expects the tech to implement it. This often happens when people with a little bit of tech…
Are client relationship the only driver of a successful MSP? While important, client relationships are only one component. Learn how else MSPs can broaden their horizon and differentiate themselves.
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

749 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