Really small one but there seems to be an html maxlength set to 4 on the remote_port field on the Syslog settings page.
However some services like PaperTrail often give five digit port numbers.
Editing the html in the browser to remove this limit seems to allow the form to save correctly and it works so I think its just a UI issue.