cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
853
Views
0
Helpful
1
Replies

what to do with syslog on Hyperflex Enviroment without DNS

Now we have 3 esxi on hyperflex enviroment.

as we don't have DNS server  . all hostname of ESXi named localhost 

as to log , we set up as follows.

"esxcli system syslog config set --loghost='udp://vcenter-ip' "

No DNS enviroment coused esxi to send log to vcenter as localhost .

So We don't know which esxi send logs to vCenter.

if you hit on good idear to solve this matter , let me know .

Do we have no choice but to setup syslog server ?

Regards

1 Accepted Solution

Accepted Solutions

Clifford Aldan
Cisco Employee
Cisco Employee

Hi, Kashima 

Another option would be to save the syslog to a datastore (iSCSI/NFS/FC) instead

Set the parameters in the Advance Option to enable the Syslog.global.logDirUnique - A boolean option which controls whether a host-specific directory is created within the configured logDir. The directory name is the hostname of the ESXi host. A unique directory is useful if the same shared directory is used by multiple ESXi hosts. Defaults to false.

For example, SSH to ESXi CLI and execute the following esxcli command:

esxcli system syslog config set --logdir=/path/to/vmfs/directory/ --logdir-unique=true 

Do this for each host 

This will create a directory in the datastore for each host based on their IP address, since that's how they're registered to vCenter in a DNS-less environment

View solution in original post

1 Reply 1

Clifford Aldan
Cisco Employee
Cisco Employee

Hi, Kashima 

Another option would be to save the syslog to a datastore (iSCSI/NFS/FC) instead

Set the parameters in the Advance Option to enable the Syslog.global.logDirUnique - A boolean option which controls whether a host-specific directory is created within the configured logDir. The directory name is the hostname of the ESXi host. A unique directory is useful if the same shared directory is used by multiple ESXi hosts. Defaults to false.

For example, SSH to ESXi CLI and execute the following esxcli command:

esxcli system syslog config set --logdir=/path/to/vmfs/directory/ --logdir-unique=true 

Do this for each host 

This will create a directory in the datastore for each host based on their IP address, since that's how they're registered to vCenter in a DNS-less environment

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card