VMware Cloud Community
phetertheo
Contributor
Contributor
Jump to solution

Change syslog port

Dear member

We have using ESXi 5.0, currently default port for syslog is 514. We want to change it to port 222. May I know how to change the port from 514 to 222?

Rgds

PheterTheo

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
Dave_Mishchenko
Immortal
Immortal
Jump to solution

This KB article covers the options to configure syslogging on ESXi 5 - http://kb.vmware.com/kb/2003322.  When you configure the syslog receiver(s) with the Syslog.global.loghost option you can specify a port (e.g. udp://<ip>:port).   When you've done that you'll also need to update the firewall as the default syslog ports are 514 and 1514.  This KB article covers created new firewall rules - http://kb.vmware.com/kb/2005304.

View solution in original post

0 Kudos
4 Replies
Dave_Mishchenko
Immortal
Immortal
Jump to solution

This KB article covers the options to configure syslogging on ESXi 5 - http://kb.vmware.com/kb/2003322.  When you configure the syslog receiver(s) with the Syslog.global.loghost option you can specify a port (e.g. udp://<ip>:port).   When you've done that you'll also need to update the firewall as the default syslog ports are 514 and 1514.  This KB article covers created new firewall rules - http://kb.vmware.com/kb/2005304.

0 Kudos
abirhasan
Enthusiast
Enthusiast
Jump to solution

0 Kudos
jimraina
Enthusiast
Enthusiast
Jump to solution

Hi phetertheo,

Welcome to the community.  Could you please follow below steps :-  Open a ESXi Shell console session where the esxcli command is available, such as the vCLI or on the host directly.  Display the existing 5 configuration options on the host using the command:  esxcli system syslog config get  Set new host configuration, specifying options to change, using a command similar to:  esxcli system syslog config set --logdir=/path/to/directory/ --loghost=RemoteHostname --logdir-unique=true|false --default-rotate=NNN --default-size=NNN  For example, to configure remote syslog using TCP on port 514:  esxcli system syslog config set --loghost='tcp://10.11.12.13:514'  After making configuration changes, load the new configuration using the command:  esxcli system syslog reload

"You are stronger than you think"
0 Kudos
phetertheo
Contributor
Contributor
Jump to solution

Hi Dave

Thanks for you prompt feedback. After go through to the KB's i manged to configure third party port which alternative default port of syslog (514).

Others member, thanks for you feedback.

Tq

0 Kudos