Specifications

Configuring Syslog
March 15, 2011 Page 10 of 13
4(errors) 5(warnings) 6(notifications)
7(information) 8(debugging)
Modifying Severity Levels and Assigning Syslog Servers for Applications
ApplicationsrunningonEnterasysdeviceswillusethedefaultSyslogsettingsunlessotherwise
configuredbythesetloggingserverorsetloggingdefaultcommandsaspreviously described.
Tomodifytheseveritylevelatwhichlogmessageswillbeforwardedandtheserver(s)towhich
theywillbesentforoneor
allapplications:
set logging application {[mnemonic|all]} [level level] [servers servers]
Example
ThisexampleshowshowtosettheseveritylevelforSSH(SecureShell)to5sothatwarning
conditionsandmessagesofgreaterseverity(levels5to1)generatedbythatapplicationwillbe
senttoSyslogserver1.
Switch1(rw)->set logging application SSH level 5 server 1
Enabling Console Logging and File Storage
Stackableandstandaloneswitchdevicesallowyoutodisplayloggingmessagestotheconsoleand
savetoapersistentfile.Inaddition,NSeries,SSeries,andKSeriesdevicesalsoprovidethe
optionofallowingyoutodisplaymessagestothecurrentconsoleCLIsessiononly(setlogging
here).
Consoleloggingallowsyoutoviewonlyasmanymessagesaswillfitonthescreen.Asnew
messagesappear,oldmessagessimplyscrollofftheconsole.Whilethisisatemporarymeansof
logginginformation,itallowsyoutotrackveryspecificactivitiesquicklyandeasily.Consolelog
messagescan
alsobesavedtoapersistentfile.OntheNSeries,SSeries,andKSeries,consolelog
messagescanbesavedtoapersistentfileattwolocations:
slotX/logs/current.logLocationofcurrentsystemlogmessages(upto256k),whereX
specifiestheslotlocationofthedevice.
slotX/logs/old.log
Locationofprevioussystemlogmessages,whereXspecifiestheslot
locationofthedevice.Currentmessageswillbemovedtotheold.logwhencurrent.logfile
exceeds256k.
Usethefollowingcommandstoreviewandconfigureconsoleloggingandfilestorage.
Displaying to the Console and Saving to a File
Todisplaylogmessagestotheconsoleandsavetoapersistentfile:
set logging local console enable file enable
Note: Mnemonic values are case sensitive and must be typed as they are listed in the show
logging application command display for your device. Refer to Table 1 for sample CLI mnemonic
values.
Depending on your platform, you may see different applications listed from those shown in the
example above.
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.