Options

question on logging levels??

josunin75josunin75 Member Posts: 44 ■■□□□□□□□□
hello to you all cisco gurus! :)

i was just reading about the logging today
and found out that there are 7 levels to it.

my question is if i set the level to 4 what is
that going to log? what does each level going to
log? for example, if i want to log the down state of my
wan interface, which level of logging i need to
configure?
=============================
on to BCMSN ^=============^

<Lab>
2 x 3550 EMI
2 x 2950
2 x 3640
1 x 2621
=============================

Comments

  • Options
    ConstantlyLearningConstantlyLearning Member Posts: 445
    Get to know your logging options in the Cisco IOS

    * 0—emergencies
    * 1—alerts
    * 2—critical
    * 3—errors
    * 4—warnings
    * 5—notification
    * 6—informational
    * 7—debugging

    Setting level 4 will log warnings, errors, critical, alerts and emergencies.

    Level 3 will let you know if the interface goes down
    Level 5 will let you know if the line protocol on the interface goes down and if the interface goes down.

    I tested what levels log the interface down messages by using the global config command "logging console [Level]". I started at level 0, disconnected and reconnected a cable and continued up the levels.
    I did this on a 2950 switch.
    "There are 3 types of people in this world, those who can count and those who can't"
  • Options
    chrisonechrisone Member Posts: 2,278 ■■■■■■■■■□
    Also if you choose Level 7 or 6 , it will log the lower levels as well. So the higher will include the numbers below as well. You also need to set this up either on a log server or locally on the buffer.

    opps didnt see the user above me already posted the link...
    Certs: CISSP, EnCE, OSCP, CRTP, eCTHPv2, eCPPT, eCIR, LFCS, CEH, SPLK-1002, SC-200, SC-300, AZ-900, AZ-500, VHL:Advanced+
    2023 Cert Goals: SC-100, eCPTX
  • Options
    Forsaken_GAForsaken_GA Member Posts: 4,024
    these also equate to unix syslog levels

    one of the nice things is that you can use something like syslog-ng to capture each level and log it to it's own log. It's a whole lot easier to write software that can react to new entries in a level3 log than to have to parse the entire log file
Sign In or Register to comment.