lua-dest: Added deinit function for lua destination.

Added new deinit-func() parameter, in which we can specify a
function name which is called during destination driver deinitialization.
Merge pull request #16 from talien/feature/lua-dest-deinit

lua-dest: Added deinit function for lua destination.
.travis.yml: apt-get update before installing curl

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Bump the syslog-ng requirement to 3.6+

With 3.5/master branched off, bump the syslog-ng requirement to 3.6+.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
.travis.yml: Do not compile master

Master will require syslog-ng 3.6+, which is not packaged yet, so don't
try to compile it for now.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
lua, monitor: Fixed compiler warnings
modules: Convert to syslog-ng master

syslog-ng master changed how LogPipe is created and initialized, adapt
our modules to the new API.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Merge pull request #17 from talien/feature/lua-fixes

lua, monitor: Fixed compiler warnings
lua, monitor: Further compiler warning fixes

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Merge remote-tracking branch 'talien/feature/lua-fixes' into 3.5/master
lua, monitor: Further compiler warning fixes

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
rss: Don't use g_list_free_full()

Instead of using g_list_free_full(), iterate over the list ourselves.
This avoids a dependency on a more recent glib. This fixes #13.

Reported-by: Fabien Wernli
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
rss: Don't use g_list_free_full()

Instead of using g_list_free_full(), iterate over the list ourselves.
This avoids a dependency on a more recent glib. This fixes #13.

Reported-by: Fabien Wernli
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
README.md: Corrected the 3.5/master branch link

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
lua: Added Message.get_timestamp(msg)

With this, you can directly query the message's
unix timestamp in integer format, without formatting it with
a macro and converting it back to number.

Signed-off-by: Tusa Viktor <tusavik@gmail.com>
Merge pull request #18 from talien/feature/lua-msg-timestamp

lua: Added Message.get_timestamp(msg)
lua: Added Message.get_timestamp(msg)

With this, you can directly query the message's
unix timestamp in integer format, without formatting it with
a macro and converting it back to number.

Signed-off-by: Tusa Viktor <tusavik@gmail.com>
graphite-output: Added graphite plaintext proto formatting plugin.

graphite-output, a new value-pairs based template function is introduced.
It converts the incoming message to the graphite plaintext protocol format.
It is ideal to use with the monitor-source plugin generated messages.
Example usage:

destination d_graphite {
  tcp( host("localhost") port(2003) template("$(graphite-output --key monitor.*)"));
};

Signed-off-by: Tusa Viktor <tusavik@gmail.com>
graphite: Added administrational thingies.

Updated README and added graphite to configure summary.

Signed-off-by: Tusa Viktor <tusavik@gmail.com>
graphite-output: Added graphite plaintext proto formatting plugin.

graphite-output, a new value-pairs based template function is introduced.
It converts the incoming message to the graphite plaintext protocol format.
It is ideal to use with the monitor-source plugin generated messages.
Example usage:

destination d_graphite {
  tcp( host("localhost") port(2003) template("$(graphite-output --key monitor.*)"));
};

Signed-off-by: Tusa Viktor <tusavik@gmail.com>