Services

logging host <ip>

Send syslog messages to a collector over UDP 514. A server collects them once 'systemctl start rsyslog' runs; read them there with 'cat /var/log/syslog'.

Works on: Router, Firewall, SwitchMode: config
Watch out

'logging trap <level>' filters what is sent (default informational). An ACL denying udp 514 on the path, or a stopped rsyslog, means nothing arrives.

Run this command live

Don't just read it — type logging host <ip> in a real network simulator in your browser and watch it take effect. No install, no account needed to start.

Open the lab

Frequently asked

What does the "logging host <ip>" command do?

Send syslog messages to a collector over UDP 514. A server collects them once 'systemctl start rsyslog' runs; read them there with 'cat /var/log/syslog'.

What's the common gotcha with "logging host <ip>"?

'logging trap <level>' filters what is sent (default informational). An ACL denying udp 514 on the path, or a stopped rsyslog, means nothing arrives.

More Services commands

← Back to the full command reference