cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
612
Views
0
Helpful
3
Replies

12000 GSR and Syslog Setup (12.0) IOS

ixholla69
Level 1
Level 1

I know I know, what am I doing with GSRs it's a long story. But....never the less I have to configure and manage these beasts. I've setup a good syslog server and the GSR's sending clean messages BUT.... I'm getting the IP address instead of the Hostname is there any workaround for that?

Apr  5 17:52:33 208.XXX.XXX.241 11015: Apr  5 17:50:17.258: %SYS-5-CONFIG_I: Configured from console by vty0 (208.XXX.XXX.121)

I'd like the HOSTNAME to show up instead of the 208.XXX.XXX.241 IP address makes it easier to read.

I can do it on my Pix's and ASA's all day long with "logging device-id xxx.xxx.xxx.xxx" but I don't have this option in the IOS.

3 Replies 3

Joe Clarke
Cisco Employee
Cisco Employee

IOS leaves that up to the syslog server.  Many servers have an option to do hostname lookups on the message IPs so they can write the hostnames into the log file.  Check the documentation for your server to see if such an option exists.

However, if you had to add an option, try:

logging origin-id hostname

--

Please support CSC Helps Haiti

https://supportforums.cisco.com/docs/DOC-8895

https://supportforums.cisco.com

RESULTS:

L3(config)#logging origin-id hostname
Translating "origin-id"...domain server (208.XXX.XXX.10) (4.2.2.1)

What I got:

Cisco Internetwork Operating System Software
IOS (tm) GS Software (GSR-P-M), Version 12.0(32)S11, RELEASE SOFTWARE (fc

  Hostname or A.B.C.D  IP address of the logging host
  buffered             Set buffered logging parameters
  buginf               Enable buginf logging for debugging
  cns-events           Set CNS Event logging level
  console              Set console logging level
  count                Count every log message and timestamp last occurance
  exception            Limit size of exception flush output
  facility             Facility parameter for syslog messages
  history              Configure syslog history table
  host                 Set syslog server host name or IP address
  linecard             specify logging parameters for a linecard messages
  method               Logging method
  monitor              Set terminal line (monitor) logging level
  on                   Enable logging to all enabled destinations
  persistent           Set persistent logging parameters
  rate-limit           Set messages per second limit
  reload               Set reload logging level
  sequence-nums        Display sequence numbers for logging on line cards
  source-interface     Specify interface for source address in logging transactions
  trap                 Set syslog server logging level
  userinfo             Enable logging of user info on privileged mode enabling

Sorry, the command was not introduced until 12.2(25)S.  You will need to configure your syslog server to do name lookups.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco

Ā