Finally! Graylog2 v0.10.0 has arrived. Read what's new on the release page.
Graylog2 Open source. Log management.

Graylog Extended Log Format

The Graylog Extended Log Format (GELF) avoids the shortcomings of classic plain syslog:

Syslog is okay for logging system messages of you servers. Use it for that. GELF instead is great for logging from within applications. It is a good practice to send GELF messages directly from your existing logging classes so it is very easy to integrate into existing applications. You could use GELF to send every exception as a log message to your Graylog2 server. You don't have to care about timeouts, connection problems or anything that might break your application from within your logging class because GELF is sent via UDP. The disadvantage of this fire and forget principle is of course that no one garantuees that your GELF message will ever arrive. I'd say that important messages will just occur again. TCP support for those who like it is coming though.



Libraries

There is an official PHP and Ruby library to send GELF messages. There are also libraries and appenders written by users:

Structure

The GELF specs are in the wiki: https://github.com/Graylog2/graylog2-docs/wiki/GELF

Chunked GELF

UDP datagrams are limited to a size of 8192 byte. A lot of GZIP'd information is fitting in there but you sometimes might just have more information to send. This is why Graylog2 supports chunked GELF. You can define chunks of messages by prepending a byte header to a GELF message including a GELF ID for backwards compatibilty, a message ID and sequence count/number to reassemble the message later. This feature is supported by my gelf-php and gelf-rb libraries and will be documented soon. The library will detect if the message is too long and will perform the chunking itself. More information in the wiki: https://github.com/Graylog2/graylog2-docs/wiki/GELF

Rack/Rails exception tracking

This Rack middleware gem makes it very easy to log all your Rack/Rails exceptions to a Graylog2 server. Installation and configuration guide is in it's wiki