Bazsi's blog

Guarding Your Business

First alpha release of syslog-ng 3.4 published

Sunday, March 11, 2012 @ 02:03 PM Author: Balázs Scheidler

I’ve just uploaded the first release in the upcoming 3.4.x series. This is an incremental step over 3.3.x, continuing to enhance syslog-ng with features that allows more in-depth processing of messages.

I consider the most important one the ability to freely combine different kind of processing elements (parser & rewrite rules and filters) with sources and/or destinations and handle the combination as a single object. This is listed “junctions & channels” below, but you can also read more details in this blog post.

Certainly, this release is not meant to be used in production, however it also helps if you try to run your production configuration, and report back on the results. The syslog-ng configuration parser was heavily modified in this release, as little as this can also help to improve syslog-ng. I hope that binaries for the experimental repositories of various distributions will show up shortly, until then you can always clone the git tree.

Here’s a excerpt of the NEWS entry that describes the changes compared to 3.3.x:

Features:

  • Support for junctions & channels were added, which improve the flexibility of the syslog-ng configuration language. This allows combining sources with their closely tied processing functionality (like parser, rewrite and filter statements).Read this blog post for more information: http://bazsi.blogs.balabit.com/2012/01/syslog-ng-flexibility-improvements/

    In the final form of the functionality the “log” keyword as described in the blog post above was replaced with “channel”.

  • The functionality to query and manipulate sets of name-value pairs (often referenced as value-pairs and used in the mongodb() destination driver and the $(format-json) template function). got significantly improved. It is now possible to change the name of the keys when creating the output. See this commit for more information:https://github.com/bazsi/syslog-ng-3.4/commit/ddc7c2539bd66fa35e8df441e4baf58e87b6708d
  • Plugins & modules are now demand-loaded automatically if the “autoload-compiled-modules” global variable is set to 1, which is the default. Any shared libraries found on the module search path is considered for loading if the configuration file contains a reference to a functionality it provides.To disable this functionality simply set the referenced variable to 0 with a “@define” statement and load modules explicitly via”@module” statements.

    To list the available plugins & modules, use the –module-registry command line option for syslog-ng, which results in a detailed listing.

  • Added a new parser named json-parser() to parse incoming JSON formatted messages. See this commit for more information:https://github.com/bazsi/syslog-ng-3.4/commit/e5569687bba2551c89a78faee55bcf8b4944066f

     

  • Added a number of template functions:

       $(length ARG)               – length of a template expression
$(substr ARG START [LEN])   – substring of a string
$(strip ARG)                – remove white space from the start and end
$(sanitize ARG1 ARG2)       – join args to form a filename while removing special characters like ‘/’
$(+), $(-), $(*), $(/), $(%) – perform numeric operations

  • Reload of the configuration can now be triggered using “syslog-ng-ctl reload”.
  • A new macro named $LOGHOST was added, which expands to the local hostname running syslog-ng.
  • A set of time macros were added prefixed with “C_” that use the current time instead of the reception time (prefixed R_) and and the time that was included in the message (prefixed S_).  This means that C_DATE expands to the current date, whereas R_DATE would expand to the date the current message was received at.https://github.com/bazsi/syslog-ng-3.4/commit/c2d17009e2ce14960acb519750fe2537b05e6f46
  • Improved error reporting by including the configuration-file location of the object associated with the error. This makes it easier to diagnose errors even in the case of otherwise unnamed objects.
  • This release also includes all fixes of the 3.3 branch, which are not listed here for brevity’s sake. The merged commit ID is: bf742b0, which is a couple of patches ahead of “3.3.4″.

Credits:

syslog-ng is developed as a community project, and as such it relies on volunteers to do the work necessarily to produce syslog-ng.

Reporting bugs, testing changes, writing code or simply providing feedback are all important contributions, so please if you are a user of syslog-ng, contribute.

These people have helped in this release:

  • Andreas Piesk
  • Balazs Scheidler (BalaBit)
  • Balint Kovacs (BalaBit)
  • Evan Rempel (University of Victoria)
  • Gergely Nagy (BalaBit)
  • Heiko Gerstung
  • Hendrik Völker (Verizon)
  • Jakub Jankowski (superhost.pl)
  • Martin Grauel (BalaBit)
  • Matthias Runge (Fedora)
  • Patrick Hemmer
  • Russ Milne (Seccuris)

5 Responses to “First alpha release of syslog-ng 3.4 published”

  1. [...] The first alpha version of syslog-ng 3.4 is released. Major new features are junctions & channels which add even more flexibility to the syslog-ng configuration. There is now also a json parser, smtp destination and modules are now loaded automatically. For more details on what is new, please check Bazsi’s blog. [...]

  2. [...] | Balázs Scheidler (nessun voto) 0 [...]


Leave a Reply