10759 Commits

Author SHA1 Message Date
Jiri Vymazal
83388eabe9 enabling falback to older systemd version without restart-less
persistent journal switch
2017-09-07 12:19:18 +02:00
Jiri Vymazal
92ac8016e4 Made switching to persistent journal in runtime possible,
now you can continue logging after switch to persistent
journal without need to restart rsyslog service.
Bumped correspondidng systemd version dependency.
2017-09-05 14:12:31 +02:00
Rainer Gerhards
1e07622112 Merge pull request #1712 from jgerhards/trim
Rainerscript: add ltrim and rtrim functions
2017-08-21 14:34:47 +02:00
Rainer Gerhards
d9648779ee Merge pull request #1710 from jgerhards/i1708
omuxsock: Fix error reporting and remove incorrect comment
2017-08-21 14:34:23 +02:00
Rainer Gerhards
5b897a5814 Merge pull request #1715 from jasssonpet/patch-1
Fix typos in plugins/external docs
2017-08-19 11:22:26 +02:00
Rainer Gerhards
3d7fde09db Merge pull request #1727 from jbd/patch-1
Typo correction
2017-08-17 11:42:13 +02:00
jbd
c08ba60b17 Typo correction 2017-08-17 11:38:06 +02:00
Jan Gerhards
994561f8bf testbench: add test for ltrim and rtrim functions 2017-08-14 14:31:15 +02:00
Jason Zhekov
b7f5729890 Fix typos in plugins/external docs 2017-08-10 13:31:24 +03:00
Jan Gerhards
0abf897e52 rainerscript: add functions lTrim and rTrim
closes https://github.com/rsyslog/rsyslog/issues/1711
2017-08-09 15:45:30 +02:00
Jan Gerhards
87d1f9a963 omuxsock bugfix: error reporting, remove incorrect comment
fixed a bug causing incorrect debug output. Thanks
to etainativ for the fix-suggestion.
Also removed an incorrect comment (copy-paste error).

closes https://github.com/rsyslog/rsyslog/issues/1708
2017-08-09 13:29:51 +02:00
Rainer Gerhards
5ffa5114a1 bump version for next release cycle 2017-08-08 17:15:55 +02:00
Rainer Gerhards
3056a16c07 Merge branch 'master' into v8-stable v8.29.0 2017-08-08 16:50:02 +02:00
Rainer Gerhards
72ed3475be maintain ChangeLog 2017-08-08 16:49:40 +02:00
Rainer Gerhards
cbd00f8e2d Merge pull request #1707 from PascalWithopf/i-1093
omfwd, imtcp: add possibility to use priority string
2017-08-08 16:48:02 +02:00
PascalWithopf
717092d93e gnutls: add possibility to use priority string 2017-08-08 14:57:15 +02:00
Rainer Gerhards
c4ba96f621 prepare for 8.29.0 release 2017-08-08 14:39:34 +02:00
Rainer Gerhards
e81a0cf153 maintain ChangeLog 2017-08-08 14:36:28 +02:00
Rainer Gerhards
fd0c46f071 Merge pull request #1705 from jgerhards/newdbg
add debug.file and debug.whitelist parameters
2017-08-08 14:30:40 +02:00
Jan Gerhards
edfc4396a3 core: add parameters debug.file and debug.whitelist
allows to generate debug log output only of specific files
2017-08-08 12:12:39 +02:00
Rainer Gerhards
ff2ac426ac maintain ChangeLog 2017-08-03 10:54:09 +02:00
Rainer Gerhards
c7f0a863fa Merge pull request #1680 from rgerhards/wtp-logmsg
queue: provide informational messges on thread startup and shutdown
2017-08-03 10:51:39 +02:00
Rainer Gerhards
185c0a35bb Merge pull request #1699 from wdauchy/omes_leak
omelasticsearch: fixing leak while writing error file
2017-08-03 10:48:26 +02:00
Rainer Gerhards
a25573f36f Merge pull request #1698 from wdauchy/es_contenttype
omelasticsearch: avoid ES5 warnings while sending json
2017-08-03 10:44:39 +02:00
Rainer Gerhards
5ca07295bb Merge pull request #1697 from wdauchy/es_healthcheck
omelasticsearch: avoid 404 during health check
2017-08-03 10:40:28 +02:00
Rainer Gerhards
14c939af1f queue: provide informational messges on thread startup and shutdown
This provides better insight into operational state of rsyslog and is useful
in monitoring system health.
2017-08-01 17:43:32 +02:00
Rainer Gerhards
0815c22aa8 maintain ChangeLog 2017-08-01 17:39:28 +02:00
Rainer Gerhards
e2d08a4d71 Merge pull request #1693 from alorbach/imfile-i1672
imfile: Fixed wildcard detection issue on path wildcards
2017-08-01 17:31:16 +02:00
Rainer Gerhards
97c3634c9e Merge pull request #1686 from CodeHarsh/master
omfwd: Use compression level from config
2017-08-01 17:30:04 +02:00
Rainer Gerhards
ca1579e7eb Merge pull request #1683 from rgerhards/i-782
omfwd: always give reason for suspension
2017-08-01 17:28:22 +02:00
Rainer Gerhards
96d11c43b2 Merge pull request #1465 from PascalWithopf/pmnormalize
pmnormalize: new parser module
2017-08-01 17:12:29 +02:00
Rainer Gerhards
05f55ab777 Merge pull request #1681 from rgerhards/i-1662
impstats bugfix: impstats does not handle HUP
2017-08-01 17:09:49 +02:00
Rainer Gerhards
9c8cd4269e Merge pull request #1682 from rgerhards/i-1649
testbench bugfix: hang in tests if omstdout is not present
2017-08-01 17:08:11 +02:00
William Dauchy
b620c70d64 omelasticsearch: fixing leak while writing error file
since we switched to libfastjson, the default error function is
duplicating the string from fjson_object_to_json_string in order to free
the fjson object.
we however don't free the duplicated string later

fix that by adding a free
also add a second duplication for the second case of rendered string;
this makes the code easier to read instead of adding another condition.

Fixes: issue #1668
Signed-off-by: William Dauchy <w.dauchy@criteo.com>
2017-07-27 19:41:08 +02:00
William Dauchy
462be8b2ee omelasticsearch: avoid ES5 warnings while sending json
ES5 is generating warnings when sending json without the proper header:

$ curl -i -H "Content-Type: text/json" -XGET 'http://elasticsearch5:9200/' -d '{}\n'
HTTP/1.1 200 OK
Warning: 299 Elasticsearch-5.4.3-eed30a8 "Content type detection for rest requests is deprecated. Specify the content type using the [Content-Type] header." "Wed, 26 Jul 2017 14:33:28 GMT"

no issue on previous version

this patch correctly sets the header as application/json. It works for all versions (tested on ES2 and ES5)
we also handle the bulkmode where it should be set to application/x-ndjson

Fixes: #1642
Signed-off-by: William Dauchy <w.dauchy@criteo.com>
2017-07-26 17:46:26 +02:00
William Dauchy
e5a73194f8 omelasticsearch: avoid 404 error during health check
For http(s), CURLOPT_NOBODY makes libcurl do a HEAD request.
this procudes a "HTTP/1.1 404 Not Found" instead of an expected
"HTTP/1.1 200 OK".
see https://curl.haxx.se/libcurl/c/CURLOPT_NOBODY.html

remove this option to produce a GET request

Fixes: issue #1546
Signed-off-by: William Dauchy <w.dauchy@criteo.com>
2017-07-26 12:02:25 +02:00
8f2be648cd imfile: Fixed wildcard detection issue on path wildcards
Wildcards mode was not properly detected when wildcards
were only used in a directory name on startup.
This caused imfile not to create a propper dynamic filewatch.

Closes: https://github.com/rsyslog/rsyslog/issues/1672
2017-07-25 15:42:06 +02:00
Harshvardhan.s
4f70bc5b5f omfwd: Use compression level from config 2017-07-21 13:51:18 +05:30
Rainer Gerhards
ef411c7d06 omfwd refactor: use new-style errmsg object API
see also https://github.com/rsyslog/rsyslog/issues/1684
2017-07-20 14:55:41 +02:00
Rainer Gerhards
85d12f295d omfwd: always give reason for suspension
In many cases, no error message were emitted when omfwd
went into action suspension, which was confusing for end
users. This patch enables explicit error messages in all
those cases.

closes https://github.com/rsyslog/rsyslog/issues/782
2017-07-20 14:52:31 +02:00
Rainer Gerhards
cf2197d740 testbench bugfix: hang in tests if omstdout is not present
Many tests depend on omstdout. Given the fact that omstdout
is really only useful for the testbench (at least that's the intent),
we now require --enable-omstdout if --enable-testbench is given.

The alternative would have been to disable all those tests that
need it, which would have lead to considerable less testbench
coverage.

closes https://github.com/rsyslog/rsyslog/issues/1649
2017-07-20 14:31:08 +02:00
Rainer Gerhards
025ed2a933 impstats bugfix: impstats does not handle HUP
If the parameter "log.file" is specified, impstats writes its own
log file. However, HUP is not handled for this file, which makes
the functionality unusable with log rotation. It is also counter-
intuitive for users.

This patch enables correct HUP processing. As a sideline, it also
introduces a generic HUP processing framework for non-action type
of loadable modules.

closes https://github.com/rsyslog/rsyslog/issues/1662
closes https://github.com/rsyslog/rsyslog/issues/1663
2017-07-20 14:22:19 +02:00
Rainer Gerhards
66db9db816 maintain ChangeLog 2017-07-20 12:29:30 +02:00
Rainer Gerhards
80148e0bcd Merge pull request #1679 from rgerhards/imptcp-robustness
Imptcp: robustness fix and new stats counters
2017-07-20 12:26:23 +02:00
Rainer Gerhards
9375e03d53 imptcp regression: do not acces session object after delete
bug in non-released code, but too much of a mess to fix in git history,
so doing a fix commit instead
2017-07-19 15:15:10 +02:00
Rainer Gerhards
448bade63c maintain ChangeLog 2017-07-19 15:09:15 +02:00
Rainer Gerhards
ca389a9517 Merge pull request #1678 from PascalWithopf/i-1676
imtcp: framing/size errmsgs contain remote peer
2017-07-19 15:08:36 +02:00
Rainer Gerhards
058961d786 Merge pull request #1677 from PascalWithopf/i-1664
imptcp: framing/size errmsgs contain remote peer
2017-07-19 15:07:30 +02:00
Rainer Gerhards
40bf7eab1f Merge pull request #1673 from rgerhards/i-1573
core bugfix: segfault after configuration errors
2017-07-19 15:05:50 +02:00
Rainer Gerhards
b1d9cb4452 Merge pull request #1674 from PascalWithopf/i-477
imklog: Fix permitnonkernelfacility not working
2017-07-19 14:54:45 +02:00