Merge pull request #262 from bldewolf/re-classify-control-socket-EOF-log-lines

Change control socket message from notice to debug
test_systemd_journal: do not check HOST_FROM, because it is not set by the journal_reader

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
journald-mock: do not use pipe2() which is linux(glibc>=2.9)-specific

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>
systemd-journal: use the sd_journal_get_realtime_usec instead of _SOURCE_REALTIME_TIMESTAMP field

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
systemd-journal: Added debug message for incoming messages from journal.

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
systemd-journal: only one instance is acceptable

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
systemd-journal: if _COMM field does not exists, use the PROGRAM_IDENTIFIER field.

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
systemd-journal: add seek_to_tail function to journald_subsystem

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
logmsg: add new interface to make easier to manipulate name value pairs.

There are a lot of occurrences in syslog-ng, where we have the name and
the value, but we have to get a handle and set or get the value via the handle

These functions make possible to omit to get the handle by name.

New functions:
  * log_msg_get_value_by_name
  * log_msg_set_value_by_name
logmsg: use the log_msg_set_value_by_name and log_msg_get_value_by_name

to make the code cleaner where it is possible.

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
Merge pull request #263 from juhaszviktor/f/journald-fixes

F/journald fixes
logthrdestdrv: Fixes for centralized retries() functionality

New worker insert result type added: WORKER_INSERT_RESULT_NOT_CONNECTED.

When an insert() failes due to a connection error, syslog-ng
 - should rewind the message
 - should do suspend()
 - and should not increment retries counter.

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>
Merge pull request #264 from lbudai/3.6/logthrdestdrv-retries-fixes

logthrdestdrv: Fixes for centralized retries() functionality
Merge pull request #267 from juhaszviktor/f/reach_value_by_name

F/reach value by name
rewrite: Only ref condition filter, if it is not NULL.
Merge pull request #269 from talien/f/rewrite-clone-condition-fix

rewrite: Only ref condition filter, if it is not NULL.