This project sets up a centralized logging server that collects logs from multiple Linux clients using rsyslog. It also includes logrotate to automatically rotate, compress, and manage log files, ensuring efficient disk usage and forensic readiness.
- Collects logs from multiple Linux hosts.
- Supports secure log forwarding over TCP/UDP.
- Automated log rotation and compression with logrotate.
- Ready for auditing and incident response.
- Log Server: Receives logs and stores them in
/var/log/remote/. - Log Clients: Forward their local logs to the central server.
- Logrotate: Prevents disk space issues by compressing and rotating logs.
Run:
sudo bash setup_rsyslog_server.sh
sudo bash setup_rsyslog_client.sh <LOG_SERVER_IP>
logger "Test message from client"
Then Check: /var/log/remote/<CLIENT_HOSTNAME>/syslog.log