我有一个运行的进程,把它的输出写入一个文件,就像这样。
processx > /var/log/processx.log 2>&1
我怎么会写/pipe/转发给rsyslog而不是(包括2>&1
redirect)?
要么将其pipe道logging到processx | logger (and the options you want)
processx | logger (and the options you want)
或使用文本文件input模块 rsyslog读取您的现有文件。