syslog-ng无法使用已配置的源启动

时间:2019-05-13 09:10:54

标签: linux syslog sysadmin syslog-ng

我有一个 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");  };

0 个答案:

没有答案