在本地日志输出中,我可以看到debugging消息,但这些消息不会显示在远程日志logging服务器上。 它似乎忽略这些,但它打印警告和错误级别的消息就好了。
这些是本地(Ubuntu 14.04.2 LTS)syslog-ng.conf条目:
# This is the default behavior of sysklogd package # Logs may come from unix stream, but not from another machine. # source s_src { system(); internal(); }; destination d_net { udp("1.2.3.4"); }; log { source(s_src); destination(d_net); };
s_src也用于本地日志logging,所以它似乎包含debugging消息。
这是日志服务器的(Debian 6.0)configuration:
destination df_remote { file( "/var/log/remotelogs/from_$HOST" create_dirs(yes) owner(root) group(root) perm(0644) dir_perm(0777) ); }; source s_remote { udp(); }; log { source(s_remote); destination(df_remote); };
所以显然没有任何types的日志filter应用,但仍然debugging消息不通过。 这里可能是什么问题?
UDP是一个协议,旨在及时传送数据包,代价是有损耗。 只要数据包传输出现问题,数据包就会被丢弃。 参见例如这个解释 。