So erhalten Sie Protokolle im Format TT/MM/JJJJ und im IP-Adressformat mit rsyslog in Ubuntu

So erhalten Sie Protokolle im Format TT/MM/JJJJ und im IP-Adressformat mit rsyslog in Ubuntu
Feb 4 10:32:57 master sshd[2070]: pam_unix(sshd:session): session opened for user root by (uid=0) 

Feb 4 10:32:59 master sshd[2070]: Received disconnect from 192.168.0.107: 11: disconnected by user

Dies sind einige meiner Systemprotokolle. Ich brauche Protokolle im Format wie unten

Februar04 201310:32:57192.168.10.10:sshd[2070]: pam_unix(sshd:session): Sitzung für Benutzer root geöffnet durch (uid=0)

die Änderungen sind fett gedruckt. Ich brauche ein fettgedrucktes Format.

auch wenn wir eine Server-Maschine sind und wenn wir Protokolle von 2 Clients abrufen, wie können wir diese Protokolle dann separat speichern, also so etwas wie Client1-Protokolle im Verzeichnis Client1 und Client2-Protokolle im Verzeichnis Client2, indem wir rsyslog.conf verwenden, ist das möglich?

verwandte Informationen