Which setting should be used to configure the location for Host logs? I have a Vcenter 5.5 environment with 5 hosts. I plan to send them to a datastore folder, not a syslog server.
Is it 'syslog.global.logdir' or 'scratchconfig.configurationscratchlocation' OR some other setting?
I have found conflicting information.
Thanks
This might help: VMware KB: Configuring syslog on ESXi 5.x and 6.0
'syslog.global.logdir' is been used for the Location and you need to provide the settings like [Datastorename]Foldername (e.g. [datastore01]Syslog).
This will save the data to your Datastore location.
What is the purpose of 'scratchconfig.configuredscratchlocation'?
Normally ESXi has a persistent scratch location available for storing temporary data including logs, diagnostic information, and system swap files. which is not necessary to configure. by Default Scratch space is configured automatically during installation or first boot of an ESXi host, and does not usually need to be manually configured.
A similiar thread is also opened for the same have a look : Re: Scratch config vs syslog
Hi,
To configure persistent scratch space for ESXi using the vSphere Client:
.locker-ESXHostname
). ScratchConfig.ConfiguredScratchLocation
configuration option, specifying the full path to the directory. For example:/vmfs/volumes/DatastoreUUID/.locker-ESXHostname
Note: To determine the Datastore UUID: Sorry, but I still don't understand the difference between Scratch logs and the Syslogs , especially since we do not have a syslog server. Am I supposed to configure both settings? Thx
there is not enough difference between syslog and scratch. In many environments today Syslog is not used but there is real value in ESXi environments. Syslog will allow you to consolidate all logs into a single location.Using a syslog server will simplify troubleshooting and ensure that log files are accessible even when a VMware ESXi host has physically failed.Scratch space is configured automatically during installation or first boot of an ESXi 4.1 U2 and earlier host, and does not usually need to be manually configured.When using Boot-from-SAN or USB ,scratch partitions are not automatically created and the above mentioned files will be stored in a RAM disk
So its totally your choice what you want. If you can afford to buy a syslog server he can go for it .But ESXi Host cannot guarantee that remote syslog server is retaining the logs.We have to monitor it and in worst case it may also fill up
if you really want to configure the syslog a nice tool called sexilog which collects and gather all your data in to the server and give you a graphical representation.
SexiLog : See your syslog data Live… | Vmwareminds
Hi,
I. SCRATCH PARTITION
The scratch partition is *not* used for the typical logs which most of us are familiar with. In vSphere the scratch partition is used for storing the vm-support command output (support-bundle); it is also where the logs are stored initially, by default, in those cases when the partition gets automatically created – see below. You would typically provide this information when logging a support call with VMware.
II. SYSTEM LOGS
The system logs is what we are used to see – we would normally use a remote server running Syslog and forward all logs to that server, in real-time. Having the logs stored on a Syslog server allow for quicker access since most implementations provide advanced search capabilities. By default, this connection would occur over TCP or UDP, on port 514.
Though by default, these logs are *also* stored locally in the folder /var/logs/ (linked to the Scratch partition, when one exists). This location could also be changed so that logs are all stored on a remote storage location – this could be an NFS share or another shared storage available to the host.