VMware Cloud Community
schnouk
Contributor
Contributor

Best practice to change esx syslog location

Hello,

I'am two esx version 5.1. my syslog.global.logdir is on san that i want to replace. My new san is online.

I want to move my log on one datastore in the new san

What the best way ?

just copy log to the new datastore and change syslog.global.logdir value with the new path ?

after change syslog.global.logdir value muste i reboot my host?

thanks for your help

Olivier

Tags (1)
3 Replies
bspagna89
Hot Shot
Hot Shot

Hi,

You can change [NEWDATASTORE] /scratch/log or whatever your new path is and the syslogs will now go to that new location. You do not have to restart your host. Keep in mind, you may want to move the old syslog data if that does not come over.

New blog - https://virtualizeme.org/
0 Kudos
SatyS
Hot Shot
Hot Shot

There is no need to do a reboot of host.

You can just reload syslog service.

With esxcli commands, you can actually play with the log locations.

#esxcli system syslog config get : This will display your current settings for syslog

#esxcli system syslog config set --logdir=<new path> : Here you can specify the folder in your new san

#esxcli system syslog reload : This will reload the settings to apply any new configuration options.

If you find this useful,please mark the answer as correct/helpful

Regards,
SatyS
http://myvirtuallearning.wordpress.com/

MontfortInfra
Contributor
Contributor

Great info.  I always rebooted my hosts after a location change.  This just saved me massive amounts of time and change requests

0 Kudos