VMware vSphere

 View Only
  • 1.  Change syslog port

    Posted Mar 03, 2012 07:33 AM

    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



  • 2.  RE: Change syslog port
    Best Answer

    Posted Mar 03, 2012 07:47 AM

    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.



  • 3.  RE: Change syslog port

    Posted Mar 13, 2012 07:49 PM

    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



  • 4.  RE: Change syslog port

    Posted Mar 03, 2012 09:05 AM


  • 5.  RE: Change syslog port

    Posted Mar 03, 2012 10:37 AM

    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"