Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
VMware vCenter Cookbook

You're reading from   VMware vCenter Cookbook Over 65 hands-on recipes to help you efficiently manage your vSphere environment with VMware vCenter

Arrow left icon
Product type Paperback
Published in May 2015
Publisher Packt
ISBN-13 9781783553976
Length 302 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Kostantin Kuminsky Kostantin Kuminsky
Author Profile Icon Kostantin Kuminsky
Kostantin Kuminsky
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. vCenter Basic Tasks and Features FREE CHAPTER 2. Increasing Environment Availability 3. Increasing Environment Scalability 4. Improving Environment Efficiency 5. Optimizing Resource Usage 6. Basic Administrative Tasks 7. Improving Environment Manageability Index

Storing host logs on a shared datastore

ESXi server logs are stored locally by default on each host in the /var/log directory. In certain cases, there is a requirement to store logs on a datastore.

Possible scenarios are hosts without local storage, where all locally stored logs disappear after reboot, compliance requirements where there is a requirement to store logs in an alternative location, or space concerns where there are many hosts and the administrator has to keep older logs.

How to do it...

vCenter allows redirecting ESXi logs to one of the datastores accessible to the host. This can be accomplished by going to Configuration | Advanced Settings | Syslog by changing the variable Syslog.global.logDir to an appropriate value [Datastore]/Folder:

How to do it...

In vCenter Web Client, these options can be found by going to Host | Manage | Settings | Advanced System Settings, as shown in the following figure:

How to do it...

There's more…

Once this change is made, you will see log files created in the configured folder if you browse the datastore.

From the same Advanced Settings section, you can configure the additional logging options:

Option

Description

Syslog.global.logDirUnique

If chosen the ESXi syslog will create a separate folder for this host in the specified logging folder. The folder will be named with the ESXi hostname.

This option is helpful when the logging folder is shared between more than one host.

Syslog.global.defaultRotate

This is the maximum number of log files to keep after rotation.

Syslog.global.defaultSize

This is the maximum log file size in kilobytes. Once reached, the log file will be rotated.

The same logging parameters can also be configured from the ESXi command line using the esxcli system syslog command.

For example, to validate logging settings configured from vCenter use:

esxcli system syslog config get

VMware KB 2003322 gives more details about configuring syslog, including CLI command sequence, which is available at http://kb.vmware.com/kb/2003322.

You have been reading a chapter from
VMware vCenter Cookbook
Published in: May 2015
Publisher: Packt
ISBN-13: 9781783553976
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image