VMware Cloud Community
timothycw
Contributor
Contributor

Remote Syslog configuration

I have been asked to send all ESXi Host logs to an internal syslog server at my company. After a little research it appears that this command will do it.

esxcli system syslog config set --loghost='udp://10.11.12.13:514'

Is there a way to send specific logs? I don't want to send all of the logs in /var/log if possible.

Also we are using VMwrae's  vCenter log Insight tool as well. This appears to be working properly. The ESXi host are 5.1 and 5.5

Thanks in advance for your help.

Tim

Tags (1)
0 Kudos
3 Replies
AndreasBergman
Contributor
Contributor

You might be able to exclude logs from syslog by changeing the settings in for example /etc/vmware/vpxa/vpxa.cfg

-- VCA-DCV - VCA-Cloud - VCP5-DCV
0 Kudos
Alistar
Expert
Expert

The easier way to do it is via Configuration -> Advanced Settings -> Syslog -> Syslog.global.logHost value where you enter your udp:// address.

Stop by my blog if you'd like 🙂 I dabble in vSphere troubleshooting, PowerCLI scripting and NetApp storage - and I share my journeys at http://vmxp.wordpress.com/
0 Kudos
mjha
Hot Shot
Hot Shot

You can choose to include which logs should be sent to your Syslog server from Esxi host >Configuration> Advance Settings> Syslog and then nullifying the fields for which you don't want any logs.

Please consider marking this answer "correct" or "helpful" if you think your query have been answered correctly. Manish Jha | Operations Support Engineer | vCloud Air Operations vExpert 2015-17 | vExpert-NSX | vExpert-Cloud | VCAP6-DCV | VCP6-DCV | RHCE-7 Website : http://vstellar.com
0 Kudos