VMware Cloud Community
Shocko
Enthusiast
Enthusiast
Jump to solution

Hosts Profile for Specific Element - Syslog

Guys, i need to modify the syslog config to add a new host across 100 ESXi servers. I thought using a host profile would be the easiest way to go but how do I create a host profile that only contains syslog options?

Reply
0 Kudos
1 Solution

Accepted Solutions
bayupw
Leadership
Leadership
Jump to solution

You can Create a Host Profile (new) or Duplicate a Host Profile and Edit a Host Profile

Disable all settings including inside the folder see this guide Disable Host Profile Component

pastedImage_0.png

Expand the Advanced Configuration Settings, tick the checkbox Syslog.global.logHost and specify your new syslog with format tcp://hostname:514 or udp://hostname:514 or ssl://hostname:514.

pastedImage_6.png

This procedure is also documented in this KB: Configuring syslog on ESXi (2003322) | VMware KB

Other alternative method is to use VMware PowerCLI and use cmdlet Set-VMHostSysLogServer

Set-VMHostSysLogServer - PowerCLI VMware.VimAutomation.Core Help Reference

All host: Get-VMHost | Set-VMHostSysLogServer -SysLogServer <syslog server IP address/hostname> -SysLogServerPort 514

Hosts on specific cluster: Get-Cluster 'Cluster Name' | Get-VMHost | Set-VMHostSysLogServer -SysLogServer <syslog server IP address/hostname> -SysLogServerPort 514

Bayu Wibowo | VCIX6-DCV/NV
Author of VMware NSX Cookbook http://bit.ly/NSXCookbook
https://github.com/bayupw/PowerNSX-Scripts
https://nz.linkedin.com/in/bayupw | twitter @bayupw

View solution in original post

Reply
0 Kudos
2 Replies
Sakkanan
Enthusiast
Enthusiast
Jump to solution

Create a host profile  with  Syslog.global.logHost as the option name and the name or IP address of the syslog server as the option value. Write a rule that applies the host profile to all hosts that you want to provision with the settings that you specified in the reference host.

Refer below link for Creating Host profile with syslog option.

vSphere Documentation Center

Refer below link to create link for writing rule.

https://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vsphere.install.doc_50%2FGUID-7EDD1...

Reply
0 Kudos
bayupw
Leadership
Leadership
Jump to solution

You can Create a Host Profile (new) or Duplicate a Host Profile and Edit a Host Profile

Disable all settings including inside the folder see this guide Disable Host Profile Component

pastedImage_0.png

Expand the Advanced Configuration Settings, tick the checkbox Syslog.global.logHost and specify your new syslog with format tcp://hostname:514 or udp://hostname:514 or ssl://hostname:514.

pastedImage_6.png

This procedure is also documented in this KB: Configuring syslog on ESXi (2003322) | VMware KB

Other alternative method is to use VMware PowerCLI and use cmdlet Set-VMHostSysLogServer

Set-VMHostSysLogServer - PowerCLI VMware.VimAutomation.Core Help Reference

All host: Get-VMHost | Set-VMHostSysLogServer -SysLogServer <syslog server IP address/hostname> -SysLogServerPort 514

Hosts on specific cluster: Get-Cluster 'Cluster Name' | Get-VMHost | Set-VMHostSysLogServer -SysLogServer <syslog server IP address/hostname> -SysLogServerPort 514

Bayu Wibowo | VCIX6-DCV/NV
Author of VMware NSX Cookbook http://bit.ly/NSXCookbook
https://github.com/bayupw/PowerNSX-Scripts
https://nz.linkedin.com/in/bayupw | twitter @bayupw
Reply
0 Kudos