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. End with CNTL/Z.
Switch1(config)#logging ?
Hostname or A.B.C.D IP address of the logging host
buffered Set buffered logging parameters
console Set console logging level
facility Facility parameter for syslog messages
file Set logging file parameters
monitor Set terminal line (monitor) logging level
on Enable logging to all supported destinations
source-interface Specify interface for source address in logging transactions
trap Set syslog server logging level
Switch1(config)#logging trap <level>
Switch1(config)#logging on
Switch1(config)#logging facility <facility number>
Switch1(config)#logging source-interface fastEthernet 0/23
Switch1(config)#logging <syslog ip>
- How to Configure a BIND Server on Ubuntu - March 15, 2018
- What is a BGP Confederation? - March 6, 2018
- Cisco – What is BGP ORF (Outbound Route Filtering)? - March 5, 2018
Want to become a networking expert?
Here is our hand-picked selection of the best courses you can find online:
Cisco CCNA 200-301 Certification Gold Bootcamp
Complete Cyber Security Course – Network Security
Internet Security Deep Dive course
Python Pro Bootcamp
and our recommended certification practice exams:
AlphaPrep Practice Tests - Free Trial