Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

error logging

Is there any way I can set logging up on my cisco devices so they all log any errors to a server ?

3 REPLIES
New Member

Re: error logging

Hi! Carl,

Yes, you can configure your cisco devices so that you'll have the logs.

You can use the following commands in configuration mode...

logging host x.x.x.x[IP address of the syslog server]

logging traps alerts

or logging traps critical

or logging traps debugging

or logging traps emergencies

or logging traps errors

or logging traps informational

or logging traps notifications

or logging traps warnings

depending upon the kind of logs [the criteria is the severity level of the log messages] that you would want with you on the syslog server.

You can also give the following command if you want that logging on console and terminal is also enabled at the same time.

In the configuration mode...

logging on

Re: error logging

hi

you can make use of the command logging host followed by the ip address of the syslog server..

logging host 1.1.1.1

Also you can try kiwisyslog server which is mostly being used..'

Following are the different levels available ..

emergencies 0

alerts 1

critical 2

errors 3

warnings 4

notifications 5

informational 6

debugging 7

you can make use of logging trap and the severity level to select the optional msg flow to the syslog server instead of sending all the level msgs to the server..

logging trap 3

the above command will allow messages at severity levels 0 (emergencies) through 3 error to the syslog server..

regds

New Member

Re: error logging

Do I need to create a directory on my pc where these files are created ? where would it put them ?

125
Views
0
Helpful
3
Replies
CreatePlease to create content