local0-local7 in syslog
来源:互联网 发布:彭雪茹 知乎 编辑:程序博客网 时间:2024/05/23 17:00
local0-local7 are local facilities defined by the user, to log specific deamons
for example:
you can change the sshd_config file ( which is the configuration file of the sshd deamon )
from
Syslogfacility authpriv
to
Syslogfacility local7
and add the following line in the /etc/rsyslog.conf file
local7.* /var/log/sshd.log
after restarting rsyslogd and sshd, any ssh sessions to the server will be logged in the /var/log/sshd.log file
for example:
you can change the sshd_config file ( which is the configuration file of the sshd deamon )
from
Syslogfacility authpriv
to
Syslogfacility local7
and add the following line in the /etc/rsyslog.conf file
local7.* /var/log/sshd.log
after restarting rsyslogd and sshd, any ssh sessions to the server will be logged in the /var/log/sshd.log file
0 0
- local0-local7 in syslog
- syslog
- syslog
- Syslog
- Syslog
- SYSLOG
- Syslog
- syslog
- syslog
- syslog
- syslog
- syslog
- syslog
- syslog
- syslog
- syslog
- syslog 详解
- syslog.conf
- 客户端TortoiseSVN的安装及使用方法
- Jar mismatch! Fix your dependencies
- 智能手环产品分析(资料来源网上,自己总结)
- Java中的byte
- ActionScript关键词
- local0-local7 in syslog
- hdu1907John (尼姆博弈,存在一种特殊情况全为1时)
- UVA 1252 - Twenty Questions(状态压缩DP+记忆化搜索)
- WinXP环境下VS2010配置Cocos2d-x-2.1.4最新版本的开发环境
- Visual Studio Team Project 删除
- 如何有效阅读文献
- 企业移动信息化应用开发模式选型指南
- Struts2学习笔记--默认类型转换器(DefaultTypeConverter)使用
- iReport制作EXCEL、PDF或者HTML文件