Log Rotation for Self-Hosted Apps
Your app is logging to a single file. It's 50GB now. Here's how to rotate logs before your disk dies.
All the articles with the tag "linux".
Your app is logging to a single file. It's 50GB now. Here's how to rotate logs before your disk dies.
You don't need a GUI to see network packets. tcpdump on the command line beats opening Wireshark every time.
AppArmor vs SELinux explained: what mandatory access control actually does, how to write AppArmor profiles with aa-genprof, navigate SELinux labels and audit2allow, and when to use each.
Linux entropy explained: /dev/random vs /dev/urandom, entropy pools, haveged, virtio-rng, and hardware RNG. Fix low entropy on VMs and containers for safe crypto key generation.
Long-lived connections dropping randomly? Your OS is killing them. Here's why keepalives matter and how to tune them.
Master auditd for Linux audit logging: watch critical files, audit syscalls, use aureport and ausearch, and ship logs to Loki or Elasticsearch for compliance and security monitoring.
Your VM's clock is off by minutes. NTP is running but your system still drifts. Here's why.
MTU mismatches silently break large file transfers, backups, and video calls. Here's how to find and fix the wrong frame size on your network.
Set up a WireGuard VPN kill switch and prevent DNS leaks on Linux. Practical iptables rules, resolv.conf locking, and systemd-resolved config.
Run BGP in your home lab with FRRouting. Covers iBGP vs eBGP, FRR installation, basic BGP config, peering with OPNsense, route filtering, and when BGP is actually worth the complexity.
DNS broke again. Here's the exact command sequence to figure out what's happening without touching a GUI.
Learn Linux capabilities to drop root privileges without breaking your apps. Master cap_drop, cap_add in Docker, and setcap for fine-grained privilege control.