Saturday, August 10, 2013

How to configure Syslog on ESXi using PowerShell and PowerCLI




First, configure the syslog host on ESXi
get-vmhost| Set-VMHostAdvancedConfiguration -NameValue @{'Config.HostAgent.log.level'='info';'Vpx.Vpxa.config.log.level'='info';'Syslog.global.logHost'='udp://SYSLOGSERVER:514'}

Then open the appropriate firewall ports for  traffic to get through
get-vmhost| Get-VMHostFirewallException |?{$_.Name -eq 'syslog'} | Set-VMHostFirewallException -Enabled:$true

Viola! You're done!

No comments:

Post a Comment