rsyslog 到外部脚本

rsyslog 到外部脚本

使用 CentOS,我已将 rsyslog 配置为通过 shell 执行操作 (^) 将数据发送到 python 脚本。我安装了 python 2.7,但调用我的脚本时,shell 环境引用的是 python2.4。关于如何让外部脚本指向正确的 python 版本,有什么想法吗?

答案1

是的,将正确的 python 二进制文件的绝对路径放入你的 rsyslog.conf 中。

相关内容