- 论坛徽章:
- 4
|
本帖最后由 zhangzewen1989 于 2013-01-24 09:35 编辑
小弟想把系统日志配置文件中/etc/syslog.conf中的有@ip配置的给删除,以ip地址为准,我的配置- # Log all kernel messages to the console.
- 2 # Logging much else clutters up the screen.
- 3 #kern.* /dev/console
- 4
- 5 # Log anything (except mail) of level info or higher.
- 6 # Don't log private authentication messages!
- 7 *.info;mail.none;authpriv.none;cron.none /var/log/messages
- 8
- 9 # The authpriv file has restricted access.
- 10 authpriv.* /var/log/secure
- 11
- 12 # Log all the mail messages in one place.
- 13 mail.* -/var/log/maillog
- 14
- 15
- 16 # Log cron stuff
- 17 cron.* /var/log/cron
- 18
- 19 # Everybody gets emergency messages
- 20 *.emerg *
- 21
- 22 # Save news errors of level crit and higher in a special file.
- 23 uucp,news.crit /var/log/spooler
- 24
- 25 # Save boot messages also to boot.log
- 26 local7.* /var/log/boot.log
- 27 local5.* @192.168.10.63
- ~
复制代码 我想把”local5.* @192.168.10.63“这一行给删除,通过IP地址来匹配,小弟在shell上几乎是白痴一个啊,添加配置这个我会,我写出来给大家看看,自己也不知道是不是对的 :- echo -e “local5.* \t\t\t\t\t@192.168.10.63” >> /etc/syslog.conf
复制代码 |
|