我已经配置了rsyslog来发送 *** 作系统级别日志,但是想知道它是否也可以发送应用程序的日志.
我不确定IncludeConfig指令是否有效,因为它查找另一个* .conf文件.解决方法 rsyslog支持从文件中读取.这是通过imfile模块完成的.您需要以下配置:
module(load="imfile" PollingInterval="10") #needs to be done just once# needs to be done for each file you want to watchinput(type="imfile" file="/path/to/file1" Tag="tag1" Statefile="statefile1" Severity="error" Facility="local7")
在the rsyslog documentation site有更多信息
总结以上是内存溢出为你收集整理的linux – 使用Rsyslog将应用程序日志发送到syslog服务器全部内容,希望文章能够帮你解决linux – 使用Rsyslog将应用程序日志发送到syslog服务器所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)