Hi everyone, in this article I will guide you through how to integrate Cisco devices (switches and routers) with the Wazuh SIEM tool for centralized logging and monitoring.
The integration will be done in the following steps:
Cisco Switch Configuration
# VLAN Configuration for Switch
Switch>enable
Switch#configure terminal
Switch(config)#interface vlan1
Switch(config-if)#ip address 10.1.5.100 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#exit
# Default Gateway Configuration
Switch(config)#ip default-gateway 10.1.5.1
# Syslog Configuration
Switch(config)#logging on
Switch(config)#logging host 10.1.8.10
Switch(config)#logging facility local1
Switch(config)#logging source-interface vlan1
Switch(config)#logging buffered 4096
Switch(config)#logging trap informational
# Routing Configuration
Switch(config)# ip route 10.1.8.0 255.255.255.0 10.1.5.1
# Save
Switch(config)#end
Switch#wrCisco Router Configuration
# Interface Configuration for Router
Router>enable
Router#configure terminal
Router(config)#interface e0/0
Router(config-if)#ip address 10.1.6.100 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
# Default Gateway Configuration
Router(config)#ip default-gateway 10.1.5.1
# Syslog Configuration
Router(config)#logging on
Router(config)#logging host 10.1.8.10
Router(config)#logging facility local0
Router(config)#logging source-interface e0/0
Router(config)#logging buffered 4096
Router(config)#logging trap informational
# Routing Configuration
Router(config)# ip route 10.1.8.0 255.255.255.0 10.1.5.1
# Save
Router(config)#end
Router#wrWazuh Server Configuration
<remote>
<connection>syslog</connection>
<port>514</port>
<protocol>udp</protocol>
<allowed-ips>10.1.5.100</allowed-ips> # Switch/Router IP
<local_ip>10.1.8.10</local_ip> # Wazuh Server IP
</remote>Alternative Port Configuration
If you want to use a different port (e.g., 1514 for TCP or 10514 for custom UDP), modify the configuration:
<remote>
<connection>syslog</connection>
<port>1514</port> # Custom port
<protocol>tcp</protocol> # TCP instead of UDP
<allowed-ips>10.1.5.100</allowed-ips> # Switch/Router IP
<local_ip>10.1.8.10</local_ip> # Wazuh Server IP
</remote>Note: If using a custom port, remember to update the Cisco device syslog configuration:
Switch(config)#logging host 10.1.8.10 transport tcp port 1514
Router(config)#logging host 10.1.8.10 transport tcp port 1514Restart the Wazuh server to apply the changes:
sudo systemctl restart wazuh-managerThank you for taking the time to read this article. I hope you found it helpful!
Keep up the great work!