Category Archives: Virtualization

How To setup remote syslog on Vmware ESXi 5.x

To enable remote syslog for wmare esxi 5.x you need to do it from the cli using an ssh terminal

First open an ssh connection to esxi server and see your current configuration

~ # esxcli system syslog config get
Default Network Retry Timeout: 180
Local Log Output: /scratch/log
Local Logging Default Rotation Size: 1024
Local Logging Default Rotations: 8
Log To Unique Subdirectory: false
Remote Host: <none>

As you can see Remote Host setting is not set yet. So we need to specify it

 ~ # esxcli system syslog config set –loghost=’tcp://<your-syslog-server-ip-here>:514′

OR

 ~ # esxcli system syslog config set –loghost=’udp://<your-syslog-server-ip-here>:514′

Now let see again the settings

# esxcli system syslog config get
Default Network Retry Timeout: 180
Local Log Output: /scratch/log
Local Logging Default Rotation Size: 1024
Local Logging Default Rotations: 8
Log To Unique Subdirectory: false
Remote Host: udp://<your-syslog-server-ip-here>

Then reload syslog configuration for changes to take effect

esxcli system syslog reload

Happy sysloging 😉

 

Advertisements
%d bloggers like this: