English 中文(简体)
log4j SyslogAppender - TCP 支持吗?
原标题:log4j SyslogAppender - TCP support?
  • 时间:2012-05-24 13:40:55
  •  标签:
  • log4j
  • syslog

log4j 中的当前 SyslogAppender 使用 UDP 将日志传输到 syslog 服务器。 它有丢失数据的风险 。

是否已经存在任何定制的 TCPsyslogapper? 或者这个问题可以用另一种方式问: 我们如何让 SyslogAppere 百分之百地免受数据丢失的影响 。

最佳回答

"http://www.rsyslog.com/tcp-syslog-rfc5424-log4j-appender/" rel="no follow">are 各种 解决方案。

请注意,纯 TCP 不能百分之百地避免数据丢失, 因为它可能丢失在套接字缓冲中。 您需要使用专门为此设计的协议 : RELP、 HTTP 或一些对发件人回信的回复 。

问题回答

暂无回答




相关问题
Redirect C++ std::clog to syslog on Unix

I work on Unix on a C++ program that send messages to syslog. The current code uses the syslog system call that works like printf. Now I would prefer to use a stream for that purpose instead, ...

Python - retrieving info from a syslog file

I have been asked to write a program using python for an assignment. I have been given a syslog file and I have to find things out about it How do I find out how many attempts were made to login to ...

Simultaneously write to multiple syslog facilities?

Is it possible to have one application simultaneously write to multiple syslog facilities? I have an application, written in C/C++, that I would like to write some messages to local0 and other ...

Does Syslog really have a 1KB message limit?

It seems Syslog has a 1KB message limit. Is this hardcoded into the Syslog protocol, or is this a parameter that can be set for each server? I am hoping the article I read was out of date, so if you ...

Error reading log file with reg expression

I am trying to read a log file with the content look like this: 127.0.0.1 - - [17/OCT/2009:00:02:14 0000] GET xxxxxx xxxx xxx I tried the following reg exp and I am getting ERROR: Unclosed group ...

热门标签