VMware Cloud Community
SchneiderRobert
Contributor
Contributor

cant change the Syslog.global.LogDir setting on ESXi Host 6.7u3

Hello guys,

We had a problem with one of our 4 esxi hosts and were forced to reboot it. After that we tryed to check the logs and realizied its still configured to [] /scratch/log so we tryed to change it so if the provlem occure again we can check the log.

We created a folder in the ds01 named .Logs and changed the setting Syslog.global.LogDir to [ds01]/.Logs there is a little red marker in the corner and when we try to set it we just get generel system error.

via cli we jsut get not possible check the error code and there is none.

We are running on an HPE dl380 gen9 with the latest custom image and all patches.

anyone has an idea what could be the problem here

0 Kudos
7 Replies
sjesse
Leadership
Leadership

Its because the syntax is wrong, and I think its having an issue with the period. Look at

http://www.virtubytes.com/2017/10/18/configure-esxi-syslog-location/

and look at the syntax example

Example: [DevDS]/LOGS/Dev

you need to make it exactly like that, if its wrong you get the error your seeing.

0 Kudos
SchneiderRobert
Contributor
Contributor

thats exactly how i did it

[ds01]/.Logs

0 Kudos
sjesse
Leadership
Leadership

Remove the .

not  [ds01]/.Logs

but

[ds01]/Logs

0 Kudos
SchneiderRobert
Contributor
Contributor

but the folder we created is named ".Logs"

0 Kudos
NathanosBlightc
Commander
Commander

Remove dot(.) character from .log directory name and try again

and if failed again, next retry with esxcli:

esxcli system syslog config set --logdir=/vmfs/volumes/ds01/logs

Please mark my comment as the Correct Answer if this solution resolved your problem
0 Kudos
SchneiderRobert
Contributor
Contributor

i removed the . and tryed it again.

on the cli i now get

[root@esx01:~] esxcli system syslog config set --logdir=/vmfs/volumes/DS01/Logs --logdir-unique=true

No root object set for output. The command did not provide proper output.

Implementation error! The output of this command does not match the declared output type, see errors above.

in the GUI: A general system error occurred: Internal error

But in the Datastore is the folder for esx01.

0 Kudos
AlvinC
Contributor
Contributor

This syntax: [datastorename] log/unique_folder_name

You have to manually create all the unique folders in your datastore /log directory first

0 Kudos