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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: