Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

12000 GSR and Syslog Setup (12.0) IOS

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" but I don't have this option in the IOS.

Cisco Employee

Re: 12000 GSR and Syslog Setup (12.0) IOS

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

New Member

Re: 12000 GSR and Syslog Setup (12.0) IOS


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

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

Cisco Employee

Re: 12000 GSR and Syslog Setup (12.0) IOS

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