Skip to Content
HostWall
CLI

logs

hostwall logs: print and follow security events from the command line.

Print recent security events: requests that were blocked, or would have been blocked in monitor mode. Oldest first.

FlagDefaultMeaning
-n20How many recent events to show
--site <domain>allOnly this site
--action <action>allblocked or monitored
-f, --followoffKeep printing new events (checks every second) until Ctrl+C
--attacksonAccepted for compatibility; security events are the only kind of log for now
sudo hostwall logs
sudo hostwall logs -n 100 --site example.com --action blocked
sudo hostwall logs -f
2026-12-05 14:03:11  BLOCKED    SQL injection               203.0.113.7      example.com  GET /?id=1%27%20OR%20%271%27%3D%271  (score 5, id 1042)

Columns: local time, action, attack type, client IP, site, method and URL (cut at 100 characters), anomaly score and event ID. Open the event in the dashboard for the full explanation.

For HostWall's own log (startup, reloads, certificates, errors), use journalctl -u hostwall.

Edit this page on GitHub