I am attempting to get my syslog messages to contain my hostname. Below is my current config as well as a copy of the logging in the router. Can someone explain what I am doing wrong? I have also included my version of IOS in case that is a factor.
#sh run | i logg
logging buffered 51200 debugging
logging trap debugging
logging origin-id string MAS-RTR-01
logging facility local5
logging source-interface FastEthernet0/0.1
Feb 7 17:50:17.598: %SYS-5-CONFIG_I: Configured from console by brandon.strode.adm on vty0
Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 12.4(25d), RELEASE SOFTWARE (fc1
I found a similar thread in the Cisco Support Community that may help you. There are a number of
discussions there, too, if you research the topic.
I hope this helps.
Moderator for Cisco Customer Communities
I have seen this thread and read through it. I have tried a couple of the solutions listed but as the question was never fully answered I figured posting my own thread was the most viable option.
If you haven't done so already, please post this to the Cisco Support Community. Experts there can help you troubleshoot and can help provide additional information specific to your issue.
I use Graylog 2.5 Please , in the case of switch Logs meesage , how can i see the log source with the name of Switch not his address IP ?
If you trying to tag the hostname to be included in console/monitor/buffer outputs using the origin-id then its not applicable,
Hi @paul driver ,
Thank you very much for your answer, but I don't know if you have understand me, my problem how can i see the log source ( in the graylog) with the name of Switch not his address IP, i would know how to configure my switch cisco to send the messages with their hostname not the ip address
Hello @MarcoCosta2487 ,
Please try adding the followin to your cisco device:
#logging origin-id hostname
and more precisely
#logging origin-id string <device_hostname/>