If you have a central log server that collects all your server and device syslogs, you will want to configure your ESX servers to also send their logs to it.


1. Login to the ESX server

2. Modify the following syslog system config line below to allow remote syslogging:
vi /etc/sysconfig/syslog

SYSLOGD_OPTIONS="-m 0 -r"


3. Modify the syslog config with the line below to log all to a remote syslog server:
vi /etc/syslog.conf

*.*     @syslog.server.local

 


4. Restart syslog:
/etc/init.d/syslog restart

Shutting down kernel logger:                               [  OK  ]
Shutting down system logger:                               [  OK  ]
Starting system logger:                                    [  OK  ]
Starting kernel logger:                                    [  OK  ]

5. Check the syslog firewall port UDP 514 is open:
/usr/sbin/esxcfg-firewall -q
Opened ports:

6. Open the syslog port if it is not open:
/usr/sbin/esxcfg-firewall -o 514,udp,out,syslog

7. Check the syslog firewall port UDP 514 is open:
/usr/sbin/esxcfg-firewall -q
Opened ports:
syslog              : port 514 udp.out


8. Send a test log message to check it is sending remote logs:
logger testlogmessage1

 

 

 

 

Share this blog post on social media:

Social Links

Disclaimer

All advice, installation/configuration how to guides, troubleshooting and other information on this website are provided as-is with no warranty or guarantee. Whilst the information provided is correct to the best of my knowledge, I am not reponsible for any issues that may arise using this information, and you do so at your own risk. As always before performing anything; check, double check, test and always ensure you have a backup.

Copyright ©2008-2021 Andy Barnes - Please do not copy any content including images without prior consent!

Designed and Hosted by Andy Barnes

We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.