Giriş
/var/log dizinindeki sistem logları bulunur. Açıklaması şöyle. sistem loglarını görmek için journalctl komutu da kullanılabilir.
Here, you’ll see filenames like syslog, messages, auth.log, secure, cron, kern.log, apache2, mysql and more.
The Linux Log Format
Açıklaması şöyle.
The format of these logs is customizable. For example, you can log additional information by specifying extra fields in log configuration files. By default, however, log file entries are in a format close to this:
Timestamp, Hostname, Application name, Priority, Message
While Hostname is the server in the system where the message originated, Application name refers to the name of the application that generated the event, and Priority denotes how urgent or severe an event is.
Uygulama Dosyaları
Açıklaması şöyle.
User applications often store their logs in this directory, as well. Notable examples are Apache and MySQL. They store their application logs in the apache2 and mysql files, respectively. Some applications can write directly into the syslog file as well.
auth.log ve secure Dosyaları
Açıklaması şöyle.
auth.log or secure stores authentication logs, including all successful and failed login attempts.
Açıklaması şöyle.
The sudo command also creates log entries in auth.log. Any failed or successful commands executed via sudo are logged.
cron Dosyası
kern Dosyası
syslog ve messages Dosyaları
Açıklaması şöyle.
syslog Servisi yazısına bakabilirsiniz.The syslog or messages file contains general messages that log activities across the entire system.
Hiç yorum yok:
Yorum Gönder