Hello everyone !! I deceided to use graylog in the enterprise i’m working because of its powerful functions.
I configured a cisco router to send its logs to my graylog server. I tested both the Raw/Plaintext and the Syslog udp input but i am not receiving any logs. I checked the in/out msg/s but there is no traffic.
Even when i direct the logs to rsyslog it does not work.
I use graylog 2.2.3 and it is running on CentOS 7. The rsyslog version is 7.4.7
Check firewall-cmd and semanage so that the port you use for receiving rsyslog input is open. When you are certain the port is open, try tcpdump on the interface to see if anything comes to the graylog server at all.
Hi @jjfotso I can confirm that the overall solution works as I’m collecting syslog from ton of Cisco gear so the question is whether there’s a fundamental issue with rsyslog accepting anything at all. Did you inject a test syslog message into Graylog to see whether it will show up?
Here’s my template for syslog on IOS:
no logg cons
no logg mon
no logg buff
no logging rate-limit
logg trap debug
service timestamps log datetime localtime show-timezone msec
service timestamps debug datetime localtime show-timezone msec
service timestamps log uptime
logging trap warning
logging 192.168.248.6
ntp logging
ntp server 172.30.141.4
clock timezone PST -8
clock summer-time PDT recurring
I checked the firewall and it’s disabled. The SELinux is also disabled.
I used tcpdump to listen to the interface and i’m able to see a traffic coming from my router which name is RCISCOLOG.
But i’m not receiving anything in my rsyslog file. I do receive something in my graylog input but those logs are coming from my localhost not my router.
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: local7.* @127.0.0.1:5140
In the router (C7200-ADVENTERPRISEK9_SNA-M), Version 15.0(1)M) i entered these configurations:
your configuration of rsyslog tells that the port number is 5140 but according t the switch log line it tries to sen to port 514. Seems you have a mismatch in port numbers.
@jjfotso oops I might have missed a line which doesn’t show up in show run for some reason. In global config mode enter “logging on”; I think it might be that simple