{"id":47,"date":"2008-07-25T13:02:49","date_gmt":"2008-07-25T13:02:49","guid":{"rendered":"https:\/\/fir3netwp.gmsrrpobkbd.com\/2008\/07\/25\/how-do-i-set-up-logging-on-my-cisco-switch\/"},"modified":"2021-07-31T16:45:52","modified_gmt":"2021-07-31T16:45:52","slug":"how-do-i-set-up-logging-on-my-cisco-switch","status":"publish","type":"post","link":"https:\/\/www.fir3net.com\/Switches\/Cisco\/how-do-i-set-up-logging-on-my-cisco-switch.html","title":{"rendered":"How do I set up logging on my Cisco Switch ?"},"content":{"rendered":"
To setup logging on your Cisco switch is pretty straight forward, you enable logging, you tell it what to log and then were to send it. Below is an example, Switch1#config t Switch1(config)#logging trap <level> To setup logging on your Cisco switch is pretty straight forward, you enable logging, you tell it what to log and then were to send it. Below is an example, Switch1#config t Enter configuration commands, one per line.\u00a0 End with CNTL\/Z. Switch1(config)#logging ? Hostname or A.B.C.D\u00a0 IP address of the logging host buffered\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Set buffered … Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"yoast_head":"\n
\n<\/span><\/p>\n
\n<\/span><\/p>\n
\nEnter configuration commands, one per line.\u00a0 End with CNTL\/Z.
\nSwitch1(config)#logging ?
\nHostname or A.B.C.D\u00a0 IP address of the logging host
\nbuffered\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Set buffered logging parameters
\nconsole\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Set console logging level
\nfacility\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Facility parameter for syslog messages
\nfile\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Set logging file parameters
\nmonitor\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Set terminal line (monitor) logging level
\non\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Enable logging to all supported destinations
\nsource-interface Specify interface for source address in logging transactions
\ntrap\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Set syslog server logging level<\/span><\/p>\n
\nSwitch1(config)#logging on
\nSwitch1(config)#logging facility <facility number>
\nSwitch1(config)#logging source-interface fastEthernet 0\/23
\nSwitch1(config)#logging <syslog ip><\/p>\n","protected":false},"excerpt":{"rendered":"