linux日志管理

本文介绍了Linux日志管理,包括日志文件目录、日志分类如系统、登录、邮件和程序日志,以及日志管理服务。重点讲述了如何配置日志备份,包括发送端和接收端的设置,如关闭SELinux,配置发送到指定地址,以及接收端的TCP接受、日志储存路径等。
摘要由CSDN通过智能技术生成

日志文件目录

/var/log/

日志分类

        系统日志  

            /var/log/messages  

Oct 10 09:04:29 localhost kernel: SELinux:  Initializing.
Oct 10 09:04:29 localhost kernel: Yama: becoming mindful.
Oct 10 09:04:29 localhost kernel: Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Oct 10 09:04:29 localhost kernel: Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Oct 10 09:04:29 localhost kernel: Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
Oct 10 09:04:29 localhost kernel: Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)

        登录日志 

            /var/log/secure

Oct 16 17:02:49 localhost sshd[54297]: Bad protocol version identification '' from 192.168.0.1 port 28077
Oct 16 17:07:40 localhost gdm-password]: pam_unix(gdm-password:auth): conversation failed
Oct 16 17:07:40 localhost gdm-password]: pam_unix(gdm-password:auth): auth could not identify password for [linux]
Oct 16 17:07:40 localhost gdm-password]: gkr-pam: no password is available for user
Oct 16 17:07:46 localhost unix_chkpwd[54356]: password check failed for user (linux)

        邮件日志

            /var/log/maillog

Oct 10 10:09:39 localhost postfix/postfix-script[1780]: starting the P

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值