Specifications
Configuring Syslog
March 15, 2011 Page 11 of 13
Displaying to the Current CLI Session
TodisplayloggingtothecurrentCLIconsolesessiononanN‐Series,S‐Series,orK‐Seriesdevice:
set logging here enable
ThisaddsthecurrentCLIsessiontothelistofSyslogdestinations,andwillbetemporaryifthe
currentCLIsessionisusingTelnetorSSH.
Displaying a Log File
TodisplaythecontentsofthepersistentlogfileonN‐Series,S‐Series,andK‐Seriesdevices:
show file slotslotnumber/logs/current.log|old.log
Configuration Examples
Enabling a Server and Console Logging
Procedure 1showshowyouwouldcompleteabasicSyslogconfiguration.Inthisexample,the
defaultapplicationseveritylevelhasnotbeenmodified,allowingallapplicationstoforward
messagestoconfigureddestinations.OneSyslogserverisconfiguredonIPaddress10.1.1.2,
loggingallmessages.Consoleloggingisenabled,butpersistentfilestorage
isnot.
Adjusting Settings to Allow for Logging at the Debug Level
Procedure 2showshowyouwouldadjustthepreviousSyslogconfigurationsothatallAAA‐
relatedauthenticationmessages(level8)couldbeforwardedtoServer2atIPaddress10.1.1.3,
displayedontheconsoleandsavedtopersistentfilestorage.ThiswouldenableallSyslog
messagingcapabilitiesforthisparticularapplication.Since
theseverityforthisnewserverhasnot
changedfromthedefaultoflevel8,thereisnoneedtoadjustthissetting.
Note: This function is not supported on stackable or standalone fixed switches.
Notes: These log files may also be copied to another device using FTP or TFTP.
You cannot display the contents of the persistent log file on stackable or standalone switches. Use
the show logging buffer command to show the most recent entries.
Procedure 1 Configuring a Server and Console Logging
Step Task Command(s)
1. Configure Syslog server 1 and accept default
settings (listed in Table 4 on page 8).
set logging server 1 ip-addr
10.1.1.2 state enable
2. (Optional) Verify that application logging settings
are at default values for the enabled server.
show logging application all
3. Enable console logging and disable file storage. set logging local console enable
file disable
Note: The set logging local command requires that you specify both console and file settings. For
example, set logging local console enable would not execute without also specifying file enable
or disable.