How to Send Syslog Messages to a Different Socket Port?

How to Send Syslog Messages to a Different Socket Port?

If your Remote Syslog Server has its socket port set with a different port e.g. 5514 (default is 514), you can modify the NodeGrid syslog-ng configuration to accommodate this situation.

Here's how:

  1. Log in as admin to NodeGrid WebUI
  2. Go to Auditing ::  Event Destination page
  3. Click on Syslog
  4. Enable IPv4 Remote Server, and enter your Syslog server’s IP address or hostname
  5. Save
  6. Go to Access page, and click on NodeGrid Console button OR ssh to NodeGrid from an ssh client such as Putty and log in as admin.
  7. At the admin CLI prompt, type:    shell sudo su -
  8. Then at the root shell prompt, type:    sed -i 's/port(514)/port(5514)/' /etc/syslog-ng/syslog-ng.conf
  9. And restart the syslog-ng:    /etc/init.d/syslog restart