Open a secure connection to the console of your Cisco IOS device, then go into enable mode.
Router> enable
Note
Depending on your configuration, you might need to enter a password.
Once in enable mode, go into global configuration mode.
Router# configure terminal Router(config)#
Enable the syslog message.
Note
System messages are enabled by default. If logging is disabled, use this command to enable it or to ensure that it is on.
Router(config)# logging on
By default, this only logs to the console. Use this command to enable logging to send to a specific host, such as the Trellix Event Receiver. The host argument is the name or IP address of the host.
Router(config)# logging <host>
Enable time stamps for logs.
Router(config)# service timestamps log datetime localtime Router(config)# service timestamps debug datetime localtime
Adjust the security level with this command.
Router(config)# logging trap <level>
Emergency
0
System unusable messages
Alert
1
Immediate action required messages
Critical
2
Critical condition messages
Error
3
Error condition messages
Warning
4
Warning condition messages
Notification
5
Normal but significant messages
Information
6
Informational messages
Save changes and exit:
Close out of config mode.
Router(config)# exit
Save changes.
Router# copy running-config startup-config
Or:
Router# copy run start
Exit from enable mode.
Router# disable Router>
Configure Cisco IOS
- Published on Oct 27, 2026
- 1 minute(s) read
Was this article helpful?