Hi, I’m new in Graylog and i’m trying to setup a syslog for several cisco switchs (Old switchs with old IOS).
I’ve tried everything tha i’ve read in this forum and on the documentation, but I can’t get the logs that come from the switch to work.
Input Configuration:
On the Switch side I have no option to set a port. It only let me set the host IP.
On the firewall i’ve created a rule to redirect port 514 to port 1514.
“sudo firewall-cmd --permanent --add-forward-port=port=514:proto=udp:toport=1514”
I’ve tried the Syslog UDP input and the Raw/PlainText UDP input but unsuccessfully.
Are you sure the messages are being sent? Are you sure they are making it to the Graylog server? The screenshot shows the port you are listening on as 1510, but your firewall forwarding is to port 1514?
You can use SNMP to send traps for certain conditions on a cisco switch, but that is not what we’ve been configuring… configuring a syslog server with Cisco for logging varies from platform to platform, and often software version to software version within a platform. Generally it takes the form of creating a syslog server/host and then setting a logging level 0-7 (emergencies - debug). It’s best to check cisco documentation for the correct config, but try this.
also, are your time settings correct on the switch? are you logging stuff to buffer on the switch? are you generating events that are “notifications”? try changing the logging trap setting to Informational instead of notifications… it’ll generate more traffic. you can tune after.
The time settings are correct and i’m generating stuff (I do a shut and no shut on a port). I’ve change to logging informational as you suggested, but, so far, no messages arrived at graylog.
Also i have configured another syslog server to test if the messages were arriving and the other system sees the messages without a problem.
Finally I managed to solve the problem. I followed the suggestion given in the initial descriptions to foward the traffic from the 514 udp port to 5140 port.