Direkt zum Hauptinhalt

Debian 12: Logs

Nütliche Befehle für Log Dateien

# Die Letzten Einträge der Logdatei anzeigen lassen
head auth.log

# Aus der Logdatei Failed einträge filtern
cat auth.loc|log|grep ssh|grep Failed
cat auth.log|grep ssh|grep Accepted

 
fail2ban.log|grep fail2ban.actions|grep Ban