Configure Remote Logging to Use UDP

You can configure the remote server for logging through UDP.

Before you begin

The NPB application supports remote logging on Linux, Mac, or Windows operating systems, and the following commands are Linux-specific. Refer to the documentation for the Rsyslog utility for your operating system, as needed.

About this task

Create a UDP-specific configuration file to enable UDP transport of syslog.

Procedure

  1. At the command prompt, create and open the udp.conf file in your preferred text editor.
    $ /etc/rsyslog.d/udp.conf 
  2. Copy the following text into the udp.conf file with the appropriate port number.
    # load UDP listener 
    module(load="imudp") 
    # start listener at port 514 
    input(type="imudp" port="514") 
  3. Save and close udp.conf file.
  4. Restart the rsyslog service.
    $ sudo systemctl restart rsyslog
  5. Verify the rsyslog service status.
    $ sudo systemctl status rsyslog