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.
| Flag | Default | Meaning |
|---|---|---|
-n | 20 | How many recent events to show |
--site <domain> | all | Only this site |
--action <action> | all | blocked or monitored |
-f, --follow | off | Keep printing new events (checks every second) until Ctrl+C |
--attacks | on | Accepted 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 -f2026-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.