Код: Выделить всё
Oct 09 17:44:20 ip-172-31-0-228 syslog-ng[241321]: Error parsing config, syntax error, unexpected LL_IDENTIFIER, expecting '}' in /etc/syslo>
Oct 09 17:44:20 ip-172-31-0-228 syslog-ng[241321]: 7 destination d_file {
Oct 09 17:44:20 ip-172-31-0-228 syslog-ng[241321]: 8 file("/var/log/syslog-ng/test.log");
Oct 09 17:44:20 ip-172-31-0-228 syslog-ng[241321]: 9 };
Oct 09 17:44:20 ip-172-31-0-228 syslog-ng[241321]: 10
Oct 09 17:44:20 ip-172-31-0-228 syslog-ng[241321]: 11 destination d_kafka {
Oct 09 17:44:20 ip-172-31-0-228 syslog-ng[241321]: 12----> kafka(
Oct 09 17:44:20 ip-172-31-0-228 syslog-ng[241321]: 12----> ^^^^^
Oct 09 17:44:20 ip-172-31-0-228 syslog-ng[241321]: 13 topic("syslog")
Oct 09 17:44:20 ip-172-31-0-228 syslog-ng[241321]: 14 bootstrap servers("172.31.0.228:9094")
Oct 09 17:44:20 ip-172-31-0-228 syslog-ng[241321]: 15 );
Oct 09 17:44:20 ip-172-31-0-228 syslog-ng[241321]: 16 };
Код: Выделить всё
source s_net {
udp(port(514));
};
destination d_file {
file("/var/log/syslog-ng/test.log");
};
destination d_kafka {
kafka(
topic("syslog")
bootstrap-servers("172.31.0.228:9094")
);
};
log {
source(s_net);
destination(d_file);
destination(d_kafka);
level(debug);
};
Доступные модули: пары значений карты,afprog,basicfuncs,afsocket,sdjournal,kafka,rate -limit-filter,cryptofuncs,linux-kmsg-format,pacctformat,hook-commands,метка времени,псевдофайл,syslogformat,affile,json-plugin,system-source,tags-parser,tfgetent,confgen,disk-buffer,afuser,cef ,csvparser,kvformat,regexp-parser,appmodel
Насколько я вижу, все правильно, есть ли у кого-нибудь идеи, чего мне не хватает?
Подробнее здесь: https://stackoverflow.com/questions/790 ... -unexpecte