English 中文(简体)
Does Syslog really have a 1KB message limit?
原标题:
  • 时间:2010-01-06 09:34:01
  •  标签:
  • syslog

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 have any info please share.

最佳回答

This is correct, as can be seen in the syslog protocol RFC. This, and other deficiencies in the syslog protocol, is the reason why modern syslog daemons such as rsyslog support enhanced protocols with features such as TCP transport, encryption etc. There was also some effort within the IETF to standardize an improved syslog protocol, which resulted in RFC5424, RFC5425, and RFC 5426. Here, the minimum maximum message size is relatively small (depending on the transport layer), however implementations are allowed to support larger messages as well.

问题回答

From my reading of the syslog protocol spec (well, draft standard), message packets can t be more than 1KiB, but (using a fragmentation feature) messages can be. RFC 5424, however, says message size depends on transport, but is at least 480 octets.

Yes, but you can increase this limit to an arbitrary length by recompiling from source.

See instructions in this blog post I found about truncated syslog messages: http://bsdpants.blogspot.com/2010/08/truncated-syslog-messages.html





相关问题
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 ...

热门标签