linux – 使用rsyslogd在本地和远程进行日志记录
发布时间:2020-07-09 09:33:14 所属栏目: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. (编辑:鄂州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- linux – 活动套接字的{tcp_error,Socket,etimedout}’消息
- linux – 我想使用“awk”或sed打印文件中以“comm =”开头
- linux – 为什么我不能光盘进入/ var / lib / mysql
- 模拟linux网络接口上的传入数据包
- linux – cgroups隔离(分离组进程)
- linux – 避免Jenkins错误的最佳实践:sudo:没有tty存在且
- 设置Linux教室环境的提示
- 在Linux下寻求程序员编辑器
- linux – 为什么glibc二进制文件名为libc.so.6而不是libc.s
- linux-kernel – x86-64位处理器中的PAE – Linux内核