Ubuntu日志中的关键指标主要包括以下几个方面:
/var/log/syslog
/var/log/auth.log
/var/log/kern.log
/var/log/dmesg
/var/log/apache2/access.log
/var/log/apache2/error.log
/var/log/mysql/error.log
logs
文件夹中生成日志文件,例如:
/var/log/nginx/access.log
/var/log/postgresql/postgresql-版本号-main.log
top
htop
vmstat
iostat
free
netstat
ss
tcpdump
fail2ban
auditd
lm-sensors
smartctl
logrotate
工具来管理日志文件的轮转和压缩,确保日志文件不会无限增长。总之,Ubuntu日志中的关键指标涵盖了系统运行、应用程序行为、性能监控、网络安全等多个方面,是运维人员日常工作中不可或缺的一部分。