{"id":6356,"date":"2026-05-04T12:10:32","date_gmt":"2026-05-04T12:10:32","guid":{"rendered":"http:\/\/docs.connexite.co.uk\/index.php\/docs\/connexite-documentation\/synapse-cli-documentation\/cli-log-management\/"},"modified":"2026-05-04T12:19:08","modified_gmt":"2026-05-04T12:19:08","slug":"cli-log-management","status":"publish","type":"docs","link":"https:\/\/docs.connexite.co.uk\/index.php\/docs\/network\/synapse-cli-documentation\/cli-log-management\/","title":{"rendered":"Log Management"},"content":{"rendered":"<h2 class=\"connexite-doc-h2\">Log Management Overview<\/h2>\n<p>During the operation of the device, various status changes will occur, such as link status UP, DOWN, etc., and some events such as processing exceptions will also be encountered. The syslog provides a series of services. When the status changes or an event occurs, fixed-format messages will be automatically generated, and these messages will be recorded on the device log file. It can be displayed on the console port and remote login terminal, and can also be sent to 1-3 groups of log servers on the network for administrators to analyze network conditions and locate problems. In order to facilitate administrators to read and manage log messages, these log messages can be classified according to the priority of the log information.<\/p>\n<h2 class=\"connexite-doc-h2\">Configuring<\/h2>\n<p>Configure Console Log Level<\/p>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config)# logging console {| &lt;0-7&gt;}<\/code><\/pre>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config)# no logging console<\/code><\/pre>\n<h2 class=\"connexite-doc-h2\">Configure console log output level<\/h2>\n<p>Default level is 6 When executing the no command, the log will not be output on the console. Execute logging console, no level parameters, configured as default level 6<\/p>\n<h2 class=\"connexite-doc-h2\">Configure Terminal Log Level<\/h2>\n<ul class=\"connexite-doc-list\">\n<li>Configure Terminal Log Level<\/li>\n<\/ul>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config) #logging monitor {| &lt; 0-7&gt;}<\/code><\/pre>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config)# no logging monitor<\/code><\/pre>\n<h2 class=\"connexite-doc-h2\">Configure terminal log output level<\/h2>\n<p>Default level is 6 When executing the no command, the log will not be output Execute logging monitor, no level parameters, configured to the default level 6<\/p>\n<ul class=\"connexite-doc-list\">\n<li>Enable Terminal Output Log<\/li>\n<\/ul>\n<pre class=\"connexite-doc-command\"><code>SWITCH# terminal monitor<\/code><\/pre>\n<pre class=\"connexite-doc-command\"><code>SWITCH# terminal no monitor<\/code><\/pre>\n<h2 class=\"connexite-doc-h2\">Enable log output on the terminal<\/h2>\n<p>By default, the terminal does not output log When executing the no command, the terminal does not output log<\/p>\n<h2 class=\"connexite-doc-h2\">Configure Remote Server<\/h2>\n<ul class=\"connexite-doc-list\">\n<li>Configure Remote Server<\/li>\n<\/ul>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config)# logging server {| second | third} {A.B.C.D | ipv6 XX::XX } udp-port &lt;1-65535&gt;<\/code><\/pre>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config)# no logging server {| second | third}<\/code><\/pre>\n<h2 class=\"connexite-doc-h2\">Configure remote server<\/h2>\n<p>Supports up to 3 remote server configurations Support remote server UDP protocol port configuration, range &lt;1-65535&gt; When no UDP protocol port parameters are configured, the default port number is 514<\/p>\n<ul class=\"connexite-doc-list\">\n<li>Configure the Log Level Sent to the Remote Server<\/li>\n<\/ul>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config) #logging trap {| &lt; 0-7&gt;}<\/code><\/pre>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config)# no logging trap<\/code><\/pre>\n<h2 class=\"connexite-doc-h2\">Configure the level of logs sent to the server<\/h2>\n<p>Default level is 6 When executing the no command, no logs will be sent to the server. Execute logging trap , no level parameters, configured as default level 6<\/p>\n<ul class=\"connexite-doc-list\">\n<li>Configure the Rate Limit for Sending Server Logs<\/li>\n<\/ul>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config) #logging rate-limit interval &lt;1-30&gt; burst &lt;1-1000&gt;<\/code><\/pre>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config)#no logging rate-limit<\/code><\/pre>\n<h2 class=\"connexite-doc-h2\">Configure the rate at which the device sends logs to the remote server<\/h2>\n<p>Interval is the time range, the default is 6, the range is &lt;1-30&gt;, the unit is seconds burst is the maximum number of logs that can be sent within the time range, the default is 60, the range is &lt;1-1000&gt; By default, up to 60 sys logs can be sent to the server every 6 seconds Configure the Logging Buffer<\/p>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config) #logging buffer &lt;64-4096&gt;<\/code><\/pre>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config)#no logging buffer<\/code><\/pre>\n<p class=\"connexite-doc-command-desc\">Configure log storage entries, log storage starts from device startup Default number of storage entries is 1024 The range is &lt;64-4096&gt;<\/p>\n<pre class=\"connexite-doc-command\"><code>SWITCH# clear logging<\/code><\/pre>\n<h2 class=\"connexite-doc-h2\">Examples<\/h2>\n<p>Case 1 : The device sent syslog to the remote server, the device IP is 1 92.168.1.240 , the remote server IP is 1 92.168.1.33 ,UDP port number is 10514. Configure the remote server on the device:<\/p>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config)# logging server 192.168.1.33 udp-port 10514<\/code><\/pre>\n<p class=\"connexite-doc-command-desc\">The device generates syslog information: *1970 Jan 01 14:19:34 SWITCH %HAL-4: Interface gigabitEthernet0\/1 changed state to down Monitor syslog information on the remote server: LOCAL7.warn: *1970 Jan 1 14:19:34 SWITCH %HAL-4: Interface gigabitEthernet0\/1 changed state to down<\/p>\n<h2 class=\"connexite-doc-h2\">Display Information<\/h2>\n<ul class=\"connexite-doc-list\">\n<li>Display Logs Stored in Device<\/li>\n<\/ul>\n<pre class=\"connexite-doc-command\"><code>SWITCH# show logging<\/code><\/pre>\n<h2 class=\"connexite-doc-h2\">Show all syslog stored in device<\/h2>\n<ul class=\"connexite-doc-list\">\n<li>Display Logs Stored in Device of Last entries<\/li>\n<\/ul>\n<pre class=\"connexite-doc-command\"><code>SWITCH# show logging last &lt;1 4096&gt;<\/code><\/pre>\n<h2 class=\"connexite-doc-h2\">Show last specific number of logs stored in device<\/h2>\n<ul class=\"connexite-doc-list\">\n<li>Display Log Configuration Information<\/li>\n<\/ul>\n<pre class=\"connexite-doc-command\"><code>SWITCH# show logging summary<\/code><\/pre>\n<pre class=\"connexite-doc-command\"><code>SWITCH#show logging summary<\/code><\/pre>\n<p class=\"connexite-doc-command-desc\">Summary of logging configuration: Logging console : 6 Logging monitor : 6 Logging trap : 6 Logging buffer : 1024 Server: Ip address : 192.168.1.33 Udp port : 10514 Server second : Disabled Server third : Disabled Rate-limit: Interval : 1 seconds Burst : 2<\/p>\n<h2 class=\"connexite-doc-h2\">Log console output control<\/h2>\n<p>&lt;0-7&gt;: Indicates the log level Disabled: Indicates no console output Logging monitor<\/p>\n<h2 class=\"connexite-doc-h2\">Log terminal line output control<\/h2>\n<p>&lt;0-7&gt;: Indicates the log level Disabled: Indicates that it is not output in terminal line Logging trap<\/p>\n<h2 class=\"connexite-doc-h2\">Log trap remote server output control<\/h2>\n<p>&lt;0-7&gt;: Indicates the log level Disabled: Indicates not sending to the remote server<\/p>\n<h2 class=\"connexite-doc-h2\">Logging buffer<\/h2>\n<p>Log storage entries, log storage starts from device startup &lt;64-4096&gt;: Indicate max log storage entries Server Server second<\/p>\n<h2 class=\"connexite-doc-h2\">Server third<\/h2>\n<p>Server, currently supports 3 servers<\/p>\n<h2 class=\"connexite-doc-h2\">Ip address<\/h2>\n<p>Ipv6 address Ipv4, ipv6 address information Udp port<\/p>\n<h2 class=\"connexite-doc-h2\">UDP port information<\/h2>\n<p>Rate-limit Speed limit for sending logs to remote server Interval Speed limit effective time range Burst Speed limit value within interval time<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Networking \u203a Switching \u203a Edge \u203a Synapse<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":6349,"menu_order":7,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[115,119,116],"class_list":["post-6356","docs","type-docs","status-publish","hentry","doc_tag-connexite","doc_tag-network","doc_tag-synapse-cli-documentation","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.connexite.co.uk\/index.php\/wp-json\/wp\/v2\/docs\/6356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.connexite.co.uk\/index.php\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/docs.connexite.co.uk\/index.php\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/docs.connexite.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.connexite.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=6356"}],"version-history":[{"count":1,"href":"https:\/\/docs.connexite.co.uk\/index.php\/wp-json\/wp\/v2\/docs\/6356\/revisions"}],"predecessor-version":[{"id":6404,"href":"https:\/\/docs.connexite.co.uk\/index.php\/wp-json\/wp\/v2\/docs\/6356\/revisions\/6404"}],"up":[{"embeddable":true,"href":"https:\/\/docs.connexite.co.uk\/index.php\/wp-json\/wp\/v2\/docs\/6349"}],"wp:attachment":[{"href":"https:\/\/docs.connexite.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=6356"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/docs.connexite.co.uk\/index.php\/wp-json\/wp\/v2\/doc_tag?post=6356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}