logging aaa configuration

This command enables writing to the local syslog server of messages about aaa partition configuration changes.

The use of a negative form (no) of the command disables syslog aaa partition changes logging.

Syntax
[no] logging aaa configuration
Parameters

None.

Default value

Disabled.

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# logging aaa configuration
CODE

logging acl configuration

This command enables writing to the local syslog server of messages about ACL configuration changes.

The use of a negative form (no) of the command disables ACL configuration changes logging.

Syntax
[no] logging acl configuration
Parameters

None.

Default value

Disabled.

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# logging acl configuration
CODE

logging firewall configuration

This command enables writing to the local syslog server of messages about firewall configuration changes.

The use of a negative form (no) of the command disables firewall configuration changes logging.

Syntax
[no] logging firewall configuration
Parameters

None.

Default value

Disabled.

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# logging firewall configuration
CODE

logging login on-failure

This command enables writing to the local syslog server of messages about unsuccessful attempts to connect to the CLI.

The use of a negative form (no) of the command disables unsuccessful connection attempts logging.

Syntax
[no] logging login on-failure
Parameters

None.

Default value

Disabled.

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# logging login on-failure
CODE

logging nat

This command enables writing to the local syslog server of messages about NTP service operation.

The use of a negative form (no) of the command disables NAT service logging.

Syntax
[no] logging nat [<NAT-TYPE>]
Parameters

<NAT-TYPE> – type of NAT service to be logged:

  • destination;
  • proxy;
  • source;
Default value

Disabled.

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# logging nat source
CODE

logging service start-stop

This command enables writing to the local syslog server of messages about starting and stopping used services.

The use of a negative form (no) of the command disables start and stop services used logging.

Syntax
[no] logging service start-stop
Parameters

The command does not contain parameters.

Default value

Disabled.

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# logging service start-stop
CODE

logging syslog configuration

This command enables writing to the local syslog server of messages about syslog server configuration changes.

The use of a negative form (no) of the command disables syslog server configuration changes logging.

Syntax
[no] logging syslog configuration
Parameters

The command does not contain parameters.

Default value

Disabled.

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# logging syslog configuration
CODE

logging userinfo

This command enables writing to the local syslog server of messages about user-profile changes.

The use of a negative form (no) of the command disables user-profile changes logging.

Syntax
[no] logging userinfo
Parameters

The command does not contain parameters.

Default value

Disabled.

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# logging userinfo
CODE

ntp logging

This command enables writing to the local syslog server of messages about operations with NTP peers.

The use of a negative form (no) of the command disables NTP peers operations logging.

Syntax
[no] ntp logging
Parameters

The command does not contain parameters.

Default value

Disabled.

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# ntp logging
CODE

show syslog

This command displays the current configuration information of the syslog, a list of created log files, as well as to view the log files with the ability to filter using regular expressions.

Syntax
show syslog <FILE> [ from-date <YEAR> <MONTH> <DAY> ] [ from-time <TIME> ] [ to-date <YEAR> <MONTH> <DAY> ] [ to-time <TIME> ] [ from-end ]
Parameters

<FILE> – file name, set by the string of up to 31 characters;

from-date – to display information from the specified date;

from-time – to display information from the specified time;

to-date – to display information before the specified date;

to-time – to display information before the specified time;

<YEAR> – year, takes values of [2001..2037].

<MONTH> – month, takes the following values [ January/February/March/April/May/June/July/August/September/October/November/December];

<DAY> – day of the month, takes values of [1..31];

<TIME> – system timer, defined as HH MM SS, where:

  • HH – hours, takes the value of [0..23];
  • MM – minutes, takes the value of [0 ..59];
  • SS – seconds, takes the value of [0..59];

from-end – viewing the contents of the file from the end, as the last entries are placed at the end of the file;

Required privilege level

15

Command mode

ROOT

Example
esr# show syslog
   Log files
   ~~~~~~~~~
##     Name                   Size in bytes      Date of last modification
----   --------------------   ----------------   -------------------------
1      debug                  371681             Thu Jan  1 16:17:04 1970
2      debug.1                524222             Thu Jan  1 01:48:13 1970
3      esr                    97259              Thu Jan  1 16:17:01 1970
----   --------------------   ----------------   -------------------------
Total files: 4
esr# show syslog configuration
SYSLOG
File size: 512 (kiB)
Number of logs: 3
Console: info
   Files:
   ~~~~~~
ID   Name                               Severity
--   --------------------------------   ----------
0    esr                                info
CODE

show syslog configuration

This command allows to view current syslog log configuration information.

Syntax
show syslog configuration
Parameters

The command does not contain parameters.

Required privilege level

15

Command mode

ROOT

Example
esr# show syslog configuration 

SYSLOG

File size: 500 (kiB)
Number of logs: 1
Console: info
Monitor: info
CODE

syslog cli-commands

This command enables the process of logging user input commands to a local syslog server.

The use of a negative form (no) of the command disables command logging.

Syntax
[no] syslog cli-commands
Parameters

The command does not contain parameters.

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# syslog cli-commands
CODE

syslog console

This command sets the levels of syslog messages that will be displayed in the console. Displays messages that have a severity level, specified in a command, or higher.

The use of a negative form (no) of the command sets the default level of displayed messages.

Syntax
syslog console <SEVERITY>
no syslog console
Parameters

<SEVERITY> – message importance level, takes values (in order of decreasing importance):

  • emerg – critical error has occurred in the system, the system is not operational;
  • alert – alarms, immediate intervention by staff;
  • crit – critical system status, event reporting;
  • error – error messages;
  • warning – warnings, non-emergency messages;
  • notice – messages about important system events;
  • info – system information messages;
  • debug – debugging messages provide the user with information to correctly configure the system;
  • none – disables the output of syslog messages to the console.
Default value

info

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# syslog console info
CODE

syslog file

This command enables the saving of syslog messages of a specified level of importance to the specified log file. Saves messages that have a severity level, specified in a command, or higher.

The use of a negative form (no) of the command disables the saving of syslog messages in specified file.

Syntax
syslog file { flash:syslog/<NAME> | tmpsys:syslog/<NAME> } <SEVERITY>
no syslog file { flash:syslog/<NAME> | tmpsys:syslog/<NAME> | all}
Parameters

flash – file is located in the non-volatile memory of the device;

tmpsys – file is located in the volatile memory of the device;

<NAME> – name of the file to which messages of a given level will be recorded, specified by the string up to 31 characters. The use of a negative form (no) of the command with ‘all’ parameter removes all configured syslog files.

<SEVERITY> – importance level of the message, possible values are given in section syslog console.

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# syslog file esr info
CODE

syslog file-size

This command sets the maximal log file size. If the specified size is exceeded, files will be rotated automatically.

The use of a negative form (no) of the command sets the default value of log file size.

Syntax
syslog file-size <SIZE>
no syslog file-size
Parameters

<SIZE> – file size, takes the value [10..10000000] KB.

Default value

500 KB

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# syslog file-size 10000
CODE

syslog host

This command enables the sending of syslog messages of a specified level of importance to a remote syslog server. Sends messages that have a severity level, specified in a command, or higher.

The use of a negative form (no) of the command disables the sending of syslog messages to a remote syslog server.

Syntax
syslog host <HOSTNAME> { <ADDR> | <IPV6-ADDR> } [ <SEVERITY> ] [ <TRANSPORT> ] [ <PORT> ] [ vrf <VRF> ] [ source-address { <SRC-ADDR> | <IPV6-SRC-ADDR> } ]
no syslog host { <HOSTNAME> | all }
Parameters

<HOSTNAME> – syslog server name, set by the string of up to 31 characters. Used only to identify the server during configuration. The value 'all' is used in the no syslog host all command to delete all syslog servers;

<ADDR> – IP address, defined as AAA.BBB.CCC.DDD where each part takes values of [0..255];

<IPV6-ADDR> – IPv6 address, defined as X:X:X:X::X where each part takes values in hexadecimal format [0..FFFF];

<SEVERITY> – importance level of the message, optional parameter, possible values are given in section syslog console;

<TRANSPORT> – data transfer protocol, optional parameter, takes values:

  • TCP – data transmission is carried out by TCP;
  • UDP – data transmission is carried out by UDP;

<PORT> – number of TCP/UDP port, optional parameter, takes values of [1..65535], default value is 514;

<VRF> – VRF instance name, set by the string of up to 31 characters, which contains remote syslog server.

<SRC-ADDR> – IP address of the router that will be used as the source IP address in sent syslog packets.

<IPV6-SRC-ADDR> – IPv6 address of the router that will be used as the source IPv6 address in sent syslog packets;

all – key to delete all configured syslog-host.

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# syslog host eltex 192.168.2.2
CODE

syslog max-files

This command sets the maximum number of files saved during rotation.

The use of a negative form (no) of the command sets the default value of saved files amount.

Syntax
syslog max-files <NUM>
no syslog max-files
Parameters

<NUM> – maximal numberf of files , takes values [1..1000].

Default value

15

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# syslog max-files 100
CODE

syslog monitor

This command sets the level of syslog messages that will be displayed during remote connections (Telnet, SSH). Displays messages that have a severity level, specified in a command, or higher.

The use of a negative form (no) of the command sets the default level of displayed messages.

Syntax
syslog monitor <SEVERITY>
no syslog monitor
Parameters

<SEVERITY> – importance level of the message, possible values are given in section syslog console.

Default value

info

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# syslog monitor info
CODE

syslog reload debugging

This command enables debugging mode during the reboot process for the local syslog server.

The use of a negative form (no) of the command sets the default value.

Syntax
[no] syslog reload debugging
Parameters

The command does not contain parameters.

Default value

Disabled.

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# syslog reload debugging
CODE

syslog sequence-numbers

This command enables numbering of the records in the local syslog-server.

The use of a negative form (no) of the command sets the default value.

Syntax
[no] syslog sequence-numbers
Parameters

The command does not contain parameters.

Default value

Disabled.

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# syslog sequence-numbers
CODE

syslog snmp

This command sets the level of syslog messages that will be sent to the snmp server in the form of snmp-trap. The messages that have a severity level, specified in a command, or higher are sent.

The use of a negative form (no) of the command sets the default level of displayed messages.

Syntax
syslog snmp <SEVERITY>
no syslog snmp
Parameters

<SEVERITY> – importance level of the message, possible values are given in section syslog console.

Default value

info

Required privilege level

10

Command mode

CONFIG

Example
esr(config)# syslog snmp info
CODE

syslog timestamp msec

In the current firmware version this functionality is supported by ESR-100/200/1000/1200/1500/1511/1700/3100 routers only

This command enables adding the milliseconds to time to the records in the local syslog-server.

The use of a negative form (no) of the command sets the default value.

Syntax
[no] syslog timestamp msec
Parameters

The command does not contain parameters.

Default value

Disabled.

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# syslog timestamp msec
CODE

syslog sip-level

This command sets the level of sip event logging.

The use of a negative form (no) of the command sets the default value.

Syntax
[no] syslog sip-level <LEVEL>
Parameters

<LEVEL> – the level of sip messages that will go into the syslog. Takes values in the range of [0..9].

Default value

0

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# syslog sip-level 8
CODE