SUSE Support

Here When You Need Us

Setting up a Central Syslog Server to listen on both TCP and UDP ports

This document (000020554) is provided subject to the disclaimer at the end of this document.


SUSE Linux Enterprise 15 SP2
SUSE Linux Enterprise 15 SP3


Would like to setup a Central Syslog Server to listen on both TCP and UDP ports 514.

Using legacy syntax would fail on SLES 15 SP2 and SP3. Example of legacy syntax when editing the /etc/rsyslog.d/remote.conf file.

TCP Example:
$UDPServerAddress IP
$InputTCPServerRun PORT

UDP Example
$UDPServerAddress IP
$UDPServerRun PORT



1. Use the modern syntax:
Modify /etc/rsyslog.d/remote.conf with the following entries.

#TCP Example:
module(load="imtcp") # needs to be done just once 
input(type="imtcp" port="514" address="")

#UDP Example:
module(load="imudp") # needs to be done just once 
input(type="imudp" port="514" address="")

2. Copy /usr/lib/systemd/system/rsyslog.service to /etc/systemd/system/

3. Make sure the unit section of /etc/systemd/system/rsyslog.service has these two lines:

4. Run systemctl restart rsyslog.service

Additional Information


This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000020554
  • Creation Date: 17-Nov-2022
  • Modified Date:18-Nov-2022
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.