Skip to content

Commit e255b86

Browse files
committed
Add Syslog configuration examples to Cisco notes
1 parent f91520f commit e255b86

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

network/Cisco.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,35 @@ show ntp status
341341
show ntp associations
342342
```
343343

344+
#### Syslog configuration
345+
346+
```sh
347+
# Send log messages to a syslog server
348+
configure terminal
349+
logging host <ip>
350+
exit
351+
```
352+
353+
```sh
354+
# Set the severity level of messages sent to syslog server
355+
# Levels: 0=emergencies, 1=alerts, 2=critical, 3=errors, 4=warnings, 5=notifications, 6=informational, 7=debugging
356+
configure terminal
357+
logging trap <message_level>
358+
exit
359+
```
360+
361+
```sh
362+
# Add timestamps to log messages with millisecond precision
363+
configure terminal
364+
service timestamps log datetime msec
365+
exit
366+
```
367+
368+
```sh
369+
# Show logging configuration and buffered logs
370+
show logging
371+
```
372+
344373
### IPv6
345374

346375
#### Enable IPv6 Routing

0 commit comments

Comments
 (0)