Forum Discussion

rohitbarolia_28's avatar
rohitbarolia_28
Icon for Nimbostratus rankNimbostratus
Apr 24, 2019

Logging info sent to syslog

Is it possible to conform what logs are being sent to one of the syslog servers.

 

  • If I understand you correctly, you want to understand what level of information that syslog-ng in your device is sending to log files

    To do so, perform the following procedure:

    Log in to the tmsh utility by typing the following command:

    tmsh

    List the level of information that syslog-ng sends to the log files by typing the following command:

    list /sys syslog all-properties

    If you want to effect a change to the level of information that syslog-ng sends to log files, log in to the tmsh utility by typing the following command:

    tmsh

    Modify the level of information that syslog-ng sends to log files by using the following syntax:

    modify /sys syslog 

    For example, the default log level range for the authpriv syslog facility is from notice to emerg. To change the authpriv syslog facility range from warning to emerg, type the following command:

    modify /sys syslog auth-priv-from warning

    Note: For other syslog options, use the

    help /sys syslog
    command from the tmsh utility.

    Save the change by typing the following command:

    save /sys config

  • If I understand you correctly, you want to understand what level of information that syslog-ng in your device is sending to log files

    To do so, perform the following procedure:

    Log in to the tmsh utility by typing the following command:

    tmsh

    List the level of information that syslog-ng sends to the log files by typing the following command:

    list /sys syslog all-properties

    If you want to effect a change to the level of information that syslog-ng sends to log files, log in to the tmsh utility by typing the following command:

    tmsh

    Modify the level of information that syslog-ng sends to log files by using the following syntax:

    modify /sys syslog 

    For example, the default log level range for the authpriv syslog facility is from notice to emerg. To change the authpriv syslog facility range from warning to emerg, type the following command:

    modify /sys syslog auth-priv-from warning

    Note: For other syslog options, use the

    help /sys syslog
    command from the tmsh utility.

    Save the change by typing the following command:

    save /sys config