我有一个 syslog-ng 版本 3.5.6
import getpass
from netmiko import ConnectHandler
user = input('Username:')
p = getpass.getpass()
device = ConnectHandler(device_type='juniper_junos', ip='x.x.x.x',
username=user, password=p)
我已经创建了 syslog-ng.conf 文件,这是我的基本配置
Username: ironman
Password:
***output***
启动时失败,并显示错误
[root@syslog-ng]# syslog-ng --version
syslog-ng 3.5.6
Installer-Version: 3.5.6
Revision:
Compile-Date: Dec 30 2015 19:57:24
1。尝试了源选项#1
source local { internal(); unix-stream("/dev/log"); };
destination d_syslog{ tcp("syslog" port (514)); };
log { source(local); destination (d_syslog); }
2。尝试了源选项#2
[root@syslog-ng]# systemctl restart syslog-ng
Job for syslog-ng.service failed because the control process exited with error code. See "systemctl status syslog-ng.service" and "journalctl -xe" for details.
它无法重新启动
source local { internal(); pipe("/proc/kmsg"); unix-stream("/dev/log"); };