cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
411
Views
0
Helpful
5
Replies

Resolve syslog server dns name IOS-XE 16.x

level3isp(config)#logging host cribl.domain.org vrf Mgmt-intf transport udp port 1502
^
% Invalid input detected at '^' marker.

level3isp(config)#logging host ho
level3isp(config)#logging host ?
Hostname or A.B.C.D IP address of the syslog server
ipv6 Configure IPv6 syslog server

level3isp(config)#do ping vrf Mgmt-intf cribl.domain.org
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.24.11.50, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
level3isp(config)#

 

 

seem to be having issues configuring syslog server as hostname/domain name. What is the trick here? Clearly I can resolve the DNS name sourcing my mgmt-intf vrf.

5 Replies 5

balaji.bandi
Hall of Fame
Hall of Fame

how about try below :

logging host cribl.domain.org

Logging source using VRF Interface different command

example :

logging source-interface x/x vrf Mgmt-intf

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

M02@rt37
VIP
VIP

Hello @Steven-Williams-83 

You typically don't need to specify the VRF instance directly in the logging host command.

Please do:

level3isp(config)# logging host cribl.domain.org transport udp port 1502

And do:

level3isp(config)# logging source-interface vrf Mgmt-intf <interface>

 

 

 

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

level3isp(config)#do show run | inc logging
logging buffered 16384
no logging console
logging trap notifications
logging source-interface GigabitEthernet0 vrf Mgmt-intf
logging host 172.24.0.13 vrf Mgmt-intf
logging host 172.24.4.11 vrf Mgmt-intf
logging host 172.24.4.11
logging host 172.24.0.243 vrf Mgmt-intf transport tcp port 519
!
level3isp(config)#logging host cribl.domain.org transport udp port 1502


^
% Invalid input detected at '^' marker.

level3isp(config)#

 

 

no dice. 

as i understand the issue, when you issue hostname with FQDN its try to translate the domain to IP and insert the entry.

and you resolving the  FQDN using VRF, in General it expect to resolve without using VRF in this scenario, you need to find to resolve by default global resolution.

But as per my testings - even you mentioned FQDN, it convert to IP and add as host with IP address (until you have many IP associated with that domain, it only take first resolved IP against FQDN - as per your resolution it resolve to below IP (so suggest to use that IP and configure)

172.24.11.50

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

hi,

it's hard to tell which syntax marked as invalid.

can you send a screenshot instead?

it's probably due to the IOS if command is supported.

Review Cisco Networking for a $25 gift card