cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
662
Views
0
Helpful
6
Replies

Cisco Catalyst Switch syslog host configuration

zulkarnain
Level 1
Level 1

Hi All.

Is there a command for the logging host instead of using IP address, it's using URL? 

6 Replies 6

Leo Laohoo
Hall of Fame
Hall of Fame
logging origin-id hostname

Hi Leo.

Thanks for the response. What I mean is when I add the config

conf t

logging host syslog.com

when I show run | inc logging

it will show me the IP address instead of syslog.com. How to get the show running with the syslog.com instead of the ip?

 

 

> it will show me the IP address instead of syslog.com. How to get the show running with the syslog.com instead of the ip?

  - You can't change that behavior , it is intended for the syslog server to get translated to an ip address and remain in place to provide a dedicated syslog server solution.

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '


@zulkarnain wrote:
it will show me the IP address instead of syslog.com. How to get the show running with the syslog.com instead of the ip?
logging syslog.com

 

Hi Leo.

Here is the snapshot when I type the logging syslog.com. You can see that
when do sho run it will change the name into ip address.

















*BGI_C2960X_Test(config)#do sho run | inc logglogging buffered 16000
informationallogging console criticallogging origin-id hostnameprivilege
exec level 3 show logging* All access is monitored and logged
** All access is monitored and logged
*BGI_C2960X_Test(config)#logging syslog.com
<>BGI_C2960X_Test(config)#do sho run | inc logglogging
buffered 16000 informationallogging console criticallogging origin-id
hostnamelogging host 51.15.44.109privilege exec level 3 show logging*
All access is monitored and logged ** All access is monitored
and logged *BGI_C2960X_Test(config)#*

How I want to get the show run also shows as syslog.com?

zulkarnain
Level 1
Level 1

Hi All.

When i configure the logging host <hostname>, it will show IP address inside the logging host show run instead of the <hostname> that i've just type. Any help on this to retain what i have just type in the show run config?

 

Review Cisco Networking for a $25 gift card