If this document does not correspond to your current software version, you can go to Download Center to find other available document versions.

QNAP

QTS 5.0.x

Download (PDF)

Syslog Server

You can configure the NAS as a syslog server. This allows you to collect log messages from different devices in one location.

Enabling the Syslog Server

  1. Log on to QTS as administrator.
  2. Go to Control Panel > Applications > Syslog Server > Server Settings.
  3. Select Enable Syslog Server.
  4. Select at least one of the following options.

    Option

    User Action

    Enable TCP

    1. Select Enable TCP.

    2. Enter a TCP port.

    Enable UDP

    1. Select Enable UDP.

    2. Enter a UDP port.

  5. Optional: Configure the log settings.
    1. Specify the maximum log size.
      Tip:

      The log size range is 1 to 100.

    2. Select the log destination folder.
    3. Enter the log file name.
  6. Optional: Enable the email notification settings.
    Note:

    The NAS sends an email to up to 2 email addresses when the severity of the received syslog message matches the specified level.

    1. Select Enable the email notification.
    2. Select a severity level.

      Level

      Severity

      Description

      0

      Emerg

      The system is unusable.

      1

      Alert

      The system requires immediate attention.

      2

      Crit

      The system has critical conditions.

      3

      Err

      The system has error conditions.

      4

      Warning

      The system has warning conditions.

    3. Click Configure Notification Rule.

      The Create event notification rule window opens.

Adding a Syslog Server Filter

This task allows the NAS to only receive syslog messages that match a specified filter.

  1. Log on to QTS as administrator.
  2. Go to Control Panel > Applications > Syslog Server > Filter Settings.
  3. Click Add a Filter.

    The Add a Filter window opens.

  4. Configure the filter.
    1. Select the filter type.
      • Facility

      • Severity

      • Hostname

      • Application

      • Message

      • IP

    2. Select a filter option.
      • greater than or equal to

      • less than or equal to

      • equals

      • starts with

      • contains

      • not equals

      • does not start with

      • does not contain

    3. Enter the filter condition.
    4. Click Add.
      Tip:

      To remove an existing filter, click Remove.

  5. Optional: Manually configure a filter.
    1. Select Manual Edit.
    2. Type the filter conditions.
  6. Click Apply.

    QTS adds the syslog filter.

Managing Syslog Filters

  1. Log on to QTS as administrator.
  2. Go to Control Panel > Applications > Syslog Server > Filter Settings.
  3. Locate the filter you want to modify.
  4. Perform one of the following options.

    Option

    User Action

    Enable

    Click .

    QTS enables the filter.

    Disable

    Click .

    QTS disables the filter.

    Edit

    1. Click .

      The Filter window opens.

    2. Modify the filter.

    3. Click Apply.

      QTS saves the filter information.

    Delete

    1. Select one or more filters.

    2. Click Delete.

      A confirmation message appears.

    3. Click Yes.

      QTS deletes the selected filters.

    Tip:

    To view syslog messages, go to Control Panel > Applications > Syslog Server > Syslog Viewer.