12000 GSR and Syslog Setup (12.0) IOS

Unanswered Question
Apr 5th, 2010
User Badges:

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Joe Clarke Mon, 04/05/2010 - 22:23
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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



ixholla69 Mon, 04/05/2010 - 23:05
User Badges:


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

Joe Clarke Tue, 04/06/2010 - 09:32
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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


This Discussion