How to allow sysklogd to receive more than 1024 chars?

Created 2003-05-06 by Michael Meckelein.

By default the sysklogd package can handle up to 1024 bytes maximum message size. The MonitorWare Products support sending syslog messages with more than 1024 characters.

Of course, according to RFC3164 syslog messages have the limitation of 1024 bytes. But in several environments there is a need to log oversize messages. To enable sysklogd to receive these oversize messages, do the following (verified with sysklogd-1.4.1):

  1. Open syslogd.c from the sysklogd package
  2. Search the source code for the line:

    #define MAXLINE  1024  /* maximum line length */
  3.  If you change the #define MAXLINE to e.g. 1502, it should give you up to 1500 characters per message.

    Note: The two missing characters, caused by the line

    i = recv(fd, line, MAXLINE - 2, 0);
  4. Now you can recompile the package.


 The Products
MonitorWare Products
Product Comparison
Which one to Purchase?
Order and Pricing
Upgrade Insurance Info
News Releases
Version History
MonitorWare Tools
 Event Repository
 Reference library
General Information
Step-by-step guides
 - All
 - Installation and Configuration
 - Services related
 - Actions related
 - Central Monitoring
Common Uses
Syslog configuration
Syslog Log Samples
Security Reference
 - All
 - General questions
 - Configurations related
 - Monitorware Agent
 - Monitorware Console
Seminars Online
 - All
 - General
 - MonitorWare Console
 - MonitorWare Agent
 - WinSyslog related
 - EventReporter
 Order & pricing
Order now
Product Comparison
Pricing Information
Upgrade Insurance Info
Local Reseller
 Contact Us
 Data privacy policy

Printer Version Send this page to a friend

Copyright © 1988-2005 Adiscon GmbH All rights reserved.
Contact us via Secure Web Response | Privacy Policy
Topic Links: syslog | Free Weblinks Directory