简体   繁体   English

ubuntu - 禁止从特定进程/ rsyslog进程记录到syslog

[英]ubuntu - disable logging to syslog from a specific process/from the rsyslog process

I have an ubuntu machine, and a server app running on it. 我有一台ubuntu机器,并在其上运行服务器应用程序。

I also have rsyslog running which collects logs from the server app and write it to my own logs. 我还运行rsyslog,它从服务器应用程序收集日志并将其写入我自己的日志。

The issue I am having is that, it seems that the messages that are sent to rsyslog from the server app, are also written in var/logs/syslog . 我遇到的问题是,似乎从服务器应用程序发送到rsyslog的消息也写在var / logs / syslog中

How can I disable this? 我怎么能禁用它? I don't want any of the server-app related messages that are sent to rsyslog to appear in var/logs/syslog . 我不希望发送到rsyslog的任何与服务器应用程序相关的消息出现在var / logs / syslog中

Add a & stop; 添加& stop; at the next line following the command that writes to your logfile. 在写入日志文件的命令后面的下一行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM