Configure Syslog on ESXi Hosts
All ESX/ESXi hosts run a syslog service (
syslogd
), which logs messages from the VMkernel and other system
components to a file.
On an ESXi host, you can use the vSphere Client or the vSphere CLI command
vicfg-syslog
to configure the
following options:
Log file path
Specifies a datastore path to a file in which syslogd logs all messages.
Remote host
Specifies a remote host to which syslog messages are forwarded. In order to
receive the forwarded syslog messages, your remote host must have a syslog
service installed and correctly configured. Consult the documentation for the
syslog service installed on your remote host for information on configuration.
Remote port
Specifies the port on which the remote host receives syslog messages.
You cannot use the vSphere Client or
vicfg-syslog
to configure syslog behavior for an ESX host. To configure
syslog for an ESX host, you must edit the
/etc/syslog.conf
file.
For more information on
vicfg-syslog
, see the vSphere Command-Line Interface Installation and Reference Guide.
Procedure
1
In the vSphere Client inventory, select the host.
2
Click the Configuration tab.
3
Click Advanced Settings.
4
Select Syslog in the tree control.
5
In the Syslog.Local.DatastorePath text box, enter the datastore path for the file to which syslog will log
messages.
The datastore path should be of the form [<datastorename>] </path/to/file>, where the path is relative to the
root of the volume backing the datastore. For example, the datastore path
[storage1] var/log/messages
would map to the path
/vmfs/volumes/storage1/var/log/messages
.
If no path is specified, the default path is
/var/log/messages
.
6
In the Syslog.Remote.Hostname text box, enter the name of the remote host to which syslog data will be
forwarded.
If no value is specified, no data is forwarded.
7
In the Syslog.Remote.Port text box, enter the port on the remote host to which syslog data will be
forwarded.
By default, this option is set to 514, which is the default UDP port used by syslog. Changes to this option
take effect only if Syslog.Remote.Hostname is configured.
8
Click OK.
Changes to the syslog options take effect immediately.
Export Diagnostic Data
You can export all or part of your log file data.
When you export log file data, the
vm-support
script creates a file of the selected data and stores it in a location
you specify. The default file type is
.txt
if no other extension is specified. The file contains Type, Time, and
Description.
vSphere Basic System Administration
68
VMware, Inc.
Summary of Contents for 4817V62 - vSphere - PC
Page 13: ...Getting Started VMware Inc 13...
Page 14: ...vSphere Basic System Administration 14 VMware Inc...
Page 24: ...vSphere Basic System Administration 24 VMware Inc...
Page 38: ...vSphere Basic System Administration 38 VMware Inc...
Page 76: ...vSphere Basic System Administration 76 VMware Inc...
Page 85: ...Virtual Machine Management VMware Inc 85...
Page 86: ...vSphere Basic System Administration 86 VMware Inc...
Page 98: ...vSphere Basic System Administration 98 VMware Inc...
Page 131: ...3 Click OK Chapter 11 Creating Virtual Machines VMware Inc 131...
Page 132: ...vSphere Basic System Administration 132 VMware Inc...
Page 140: ...vSphere Basic System Administration 140 VMware Inc...
Page 172: ...vSphere Basic System Administration 172 VMware Inc...
Page 182: ...vSphere Basic System Administration 182 VMware Inc...
Page 200: ...vSphere Basic System Administration 200 VMware Inc...
Page 207: ...System Administration VMware Inc 207...
Page 208: ...vSphere Basic System Administration 208 VMware Inc...
Page 278: ...vSphere Basic System Administration 278 VMware Inc...
Page 289: ...Appendixes VMware Inc 289...
Page 290: ...vSphere Basic System Administration 290 VMware Inc...
Page 324: ...vSphere Basic System Administration 324 VMware Inc...
Page 364: ...vSphere Basic System Administration 364 VMware Inc...