linux – 使用rsyslogd在本地和远程进行日志记录
发布时间:2020-07-09 07:23:09 所属栏目:Linux 来源:互联网
导读:如何使用rsyslog远程和本地存储日志文件? 它看起来像配置文件中的两行一样简单: *.* @loghost*.* /var/log/messages rsyslog example configs有几个像这样的发球实例.关键一: kern.* /var/adm/kernelkern.crit @finlandia;RFC3164fmtkern.crit /dev/consol
|
如何使用rsyslog远程和本地存储日志文件? 解决方法它看起来像配置文件中的两行一样简单:*.* @loghost *.* /var/log/messages rsyslog example configs有几个像这样的发球实例.关键一: kern.* /var/adm/kernel kern.crit @finlandia;RFC3164fmt kern.crit /dev/console kern.info;kern.!err /var/adm/kernel-info The second statement directs all kernel messages of the priority crit and higher to the remote host finlandia. [...] The third rule directs these messages to the actual console,so the person who works on the machine will get them,too. (编辑:日照站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Mount NAS Storage in Linux Overview 转载
- linux – 更改docker容器的swappiness
- linux – sysfs_create_file()和sysfs_create_group()之间有
- LINUX教学:Ubuntu 安装 JDK 7 / JDK8 的两种方式
- 使用scp提示错误ECDSA host key for [ip address] has chan
- 在我的程序中使用OpenBSD的malloc,realloc和free
- 如何使用Linux在Linux机器上获取文件夹的所有者和组?
- linux – bash中的垃圾收集
- LINUX实战:Linux网络配置之虚拟网卡的配置
- 使用Wine和py2exe从Python项目中创建Windows应用程序
