Hello guys !!
I did the test of receiving logs on a virtual environnment (VMware and GNS3) before implementing that on a real network.
The test was successfull. I was able to receive logs from a Cisco router into graylog and in a file on CentOS.
In graylog i used that Syslog UDP input that i sent previously.
In the configuration file of rsyslog, i used this:
In the router (C7200-ADVENTERPRISEK9_SNA-M), Version 15.0(1)M) i entered these configurations:
service timestamps log datetime localtime show-timezone msec
logging trap debugging
Thanks @bubba198 for these logs configurations
But when i entered those logs configurations on a real swich (2960), and did show logging and i got this message:
%SYS-6-LOGGINGHOST_STARSTOP: Logging to host 192.168.240.161 port 514 stopped - CLI triggered
%SYS-6-LOGGINGHOST_STARSTOP: Logging to host 192.168.240.161 port 514 started - CLI initiated
Can someone help me to resolve this, thanks !!