Log4net 与 SyslogAppender,1kb 消息限制
有没有人找到解决这个问题的方法? 或者有更好的技术来可靠地聚合来自多个 Web 服务器的日志记录?
关于好的 log4net 日志文件分析工具(纯文本而不是 XML)的任何想法 - 当然除了好的 'ol grep :)
Has anyone found a way to get around this? Or a better technique to conglomerate logging from multiple web servers reliably?
Any ideas on good log4net log file analysis tools too (plain text not XML) - apart from good 'ol grep of course :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
基于数据库的附加程序非常适合从多个服务器收集日志。
The database-based appenders are great for collecting logs from multiple servers.
1024 字节限制是系统日志 RFC(第 4.1 节)的一部分,UDP 也是如此没有保证交付的传输(如果您担心日志行在以太中丢失)。 我认为 syslog-ng 可以解决这两个问题,但我不是 syslog 专家。
The 1024 byte limit is part of the syslog RFC (section 4.1), as is UDP transport which doesn't have guaranteed delivery (in case you worry about log lines lost in the ether). I think syslog-ng can solve both these issues, but I'm not a syslog expert.
该限制是由系统日志本身施加的,而不是由附加程序施加的。
我不知道 log4net,但是 NLog 与“共享”文件目标完美配合 - 即多个进程可以写入同一个文件。
The limitation is imposed by the syslog itself, not the appender.
I do not know about log4net, but NLog works perfectly ok with "shared" file target - i.e. multiple processes can write in one and the same file.
我在另一个问题上读到了 logFaces ,或者你可以使用套接字附加程序并编写您自己的服务器。 logFaces 将自己描述为“日志服务器、聚合器和查看器”,但我还没有尝试过。
I read about logFaces on another question, or you could use a socket appender and write your own server. logFaces describes itself as a "Log server, aggregator & viewer" but I'm yet to try it.