Rainer Gerhards
8f0de0089d
maintain ChangeLog
2017-02-13 08:37:48 +01:00
Rainer Gerhards
3d0656e752
Merge pull request #1410 from jgerhards/i1322
...
add num2ipv4 function and test
2017-02-13 08:36:21 +01:00
Rainer Gerhards
cf44dfe736
maintain ChangeLog
2017-02-11 11:27:03 +01:00
Rainer Gerhards
33b7f1fefe
Merge pull request #1398 from rgerhards/q-deserializer-seq-err
...
core: fix sequence error in msg object deserializer
2017-02-11 11:23:31 +01:00
Jan Gerhards
c41f91d249
add num2ipv4 function and test
...
closes https://github.com/rsyslog/rsyslog/issues/1322
2017-02-11 11:21:05 +01:00
Rainer Gerhards
9b715d95f3
Merge branch 'i-1401' into q-deserializer-seq-err
2017-02-10 17:38:30 +01:00
Rainer Gerhards
cdfc14685a
maintain ChangeLog
2017-02-10 17:33:21 +01:00
Rainer Gerhards
f55c3cad93
Merge pull request #1405 from jgerhards/i1279
...
add ipv42num function and test
2017-02-10 17:32:14 +01:00
Rainer Gerhards
f4ef935f2b
testbench: add test for rfc5424 format and disk queue
...
closes https://github.com/rsyslog/rsyslog/issues/1404
closes https://github.com/rsyslog/rsyslog/issues/1401
2017-02-10 15:20:35 +01:00
Jan Gerhards
00c2b4a4ae
add ipv42num function and test
...
closes https://github.com/rsyslog/rsyslog/issues/1279
2017-02-10 15:13:07 +01:00
Jiri Vymazal
96772ba3ad
added logging of host&process name of rate-limited messages source
2017-02-10 14:19:21 +01:00
Rainer Gerhards
6bb6192944
maintain ChangeLog
2017-02-10 13:18:59 +01:00
Rainer Gerhards
0afeffef33
Merge pull request #1397 from rgerhards/errmsg-on-dir-own-chg-err
...
Errmsg on dir own chg err
2017-02-10 13:14:29 +01:00
Rainer Gerhards
8a76186eee
maintain ChangeLog
2017-02-10 08:55:57 +01:00
Rainer Gerhards
ed5d4aed7a
Merge pull request #1394 from rgerhards/q-debug
...
core: add additional debug output
2017-02-10 08:54:31 +01:00
Rainer Gerhards
b8e5e9bb82
core: add additional debug output
...
This is useful for tracking queue corruption. Was added as part
of tracking down github issue #1404 .
As an unrelated small change, we slightly improve the debug
information imuxsock emits.
see also https://github.com/rsyslog/rsyslog/issues/1404
2017-02-08 18:31:18 +01:00
Rainer Gerhards
c49e42f4f8
core: fix sequence error in msg object deserializer
...
Corruption of disk queue (or disk part of DA queue) always happens if
the "json" property (message variables) is present and "structured-data"
property is also present. This causes rsyslog to serialize to the
queue in wrong property sequence, which will lead to error -2308 on
deserialization.
Seems to be a long-standing bug. Depending on version used, some or
all messages in disk queue may be lost.
closes https://github.com/rsyslog/rsyslog/issues/1404
2017-02-08 18:28:27 +01:00
Rainer Gerhards
efbd6f964a
core: add error message if configured directory owner cannot be set
...
closes https://github.com/rsyslog/rsyslog/issues/1396
2017-02-08 15:24:34 +01:00
Rainer Gerhards
9a24eceb94
core: make errmsg functionnality available via non-object interface
...
the object-like interface is no longer required for e.g. AIX, so we
can also support the easier to use (and slightly faster) traditional
C calling convention.
2017-02-08 15:24:28 +01:00
Rainer Gerhards
0b097b0dbd
maintain ChangeLog
2017-02-02 17:47:56 +01:00
Rainer Gerhards
21ce899583
Merge pull request #1386 from PascalWithopf/mmrm1stspace-issue
...
mmrm1stspace: last char isn't doubled anymore
2017-02-02 18:46:23 +02:00
Rainer Gerhards
71984ef6c5
fix testbench: shutdown-immediate command did not work for instance 2
2017-02-02 15:32:49 +01:00
Pascal Withopf
5e519a9ff5
mmrm1stspace: last char isn't doubled anymore
2017-02-02 09:57:49 +01:00
Rainer Gerhards
29b6440958
Merge pull request #1381 from GrayTShirt/mmdblookup-test
...
validate mmdblookup tests
2017-01-26 13:33:29 +01:00
Dan Molik
315fa5259c
validate mmdblookup test
...
- streamline testing with ruleset and mmnormalize
2017-01-25 13:20:07 -05:00
Rainer Gerhards
ba2bc0755c
maintain ChangeLog
2017-01-25 10:17:32 +01:00
Rainer Gerhards
d5c6ee3567
Merge pull request #1371 from alorbach/imfile-multilevelwildcard
...
Imfile multilevelwildcard
2017-01-25 10:15:06 +01:00
Rainer Gerhards
197b99c2e6
maintain ChangeLog
2017-01-25 10:10:37 +01:00
Rainer Gerhards
d8e56c14b7
Merge pull request #1378 from rgerhards/i-1376
...
fix issues with set/unset statements
2017-01-25 10:08:03 +01:00
Rainer Gerhards
756e871f82
testbench: add test to ensure no memleak in "set" statement
2017-01-25 08:48:59 +01:00
Rainer Gerhards
114605a0fc
imtcp: fix very small (cosmetic) memory leak
...
For each listener, the name of an assigned ruleset is not freed. This
is cosmetic, because it is a very small static leak AND it needs to
be kept until end of run anyways (and at end of run the OS frees it).
However, the leak breaks memleak checks in the testbench.
2017-01-24 15:07:56 +01:00
Rainer Gerhards
03a6b2bf34
testbench: add test for invalid var name with set/unset
...
see also https://github.com/rsyslog/rsyslog/issues/1377
2017-01-24 14:44:15 +01:00
Rainer Gerhards
e2767839bc
rainescript: set/unset statement do not check variable name validity
...
Only JSON-based variables can be use with set and unset. Unfortunately,
this restriction is not checked. If an invalid variable is given
(e.g. $invalid), this is not detected upon config processing on
startup. During execution phase, this can lead to a segfault, a
memory leak or other types of problems.
see also https://github.com/rsyslog/rsyslog/issues/1376
closes https://github.com/rsyslog/rsyslog/issues/1377
2017-01-24 13:24:29 +01:00
Rainer Gerhards
026cfbef3b
maintain ChangeLog
2017-01-23 15:39:09 +01:00
Rainer Gerhards
e318309c61
Merge pull request #1357 from GrayTShirt/mmdb-stylecheck
...
mmdblookup module cleanup
2017-01-23 15:37:49 +01:00
Rainer Gerhards
c88c575f21
maintain ChangeLog
2017-01-23 15:36:01 +01:00
Rainer Gerhards
6f8e3e49a4
Merge pull request #1375 from rgerhards/i-1351
...
bugfix: rsyslog loops on freebsd when trying to write /dev/console
2017-01-23 15:34:00 +01:00
faca9c8ced
imfile: Fixed bug in dynamic dir watch found using testsuite.
...
testsuite: Also added msleep between directory and file creation
in imfile wildcard tests. Sometimes a directory watch was not created
before the testsuite created a logfile.
2017-01-19 13:41:00 +01:00
Dan Molik
55c080e83e
disable mmdblookup tests, until debugging
2017-01-18 13:37:28 -05:00
Damien Fleuriot
ee136aa582
bugfix: rsyslog loops on freebsd when trying to write /dev/console
...
Rsyslog 8.23.0 loops on FreeBSD when trying to access a (now revoked) /dev/console file descriptor, as per Alexandre's original bug report [1].
The original patch fixes the problem when tryTTYRecover() sees errno 6 ENXIO.
Running FreeBSD 10-stable here and getting errno 5 EIO, same as Xavier gets in his 2016 bug report [2].
New patch [3] includes errno 5 to tryTTYRecover() in runtime/stream.c and fixes the problem for me, on multiple machines.
[1] https://github.com/rsyslog/rsyslog/issues/371
[2] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211033
[3] https://bz-attachments.freebsd.org/attachment.cgi?id=178452
closes https://github.com/rsyslog/rsyslog/issues/1351
2017-01-18 18:58:59 +01:00
658f1e062c
testsuite: Fixed state filename in some elasticsearch tests.
...
These tests only worked before, because the statefile was not written
due an issue fixed in commit:
2f7b371017
2017-01-18 12:55:41 +01:00
478f2762ae
imfile: Fixed codestyle issues and restored code from previous commits.
2017-01-18 10:46:26 +01:00
ca3850c601
imfile: Moved getBaseDir to inotify functions
2017-01-17 15:24:04 +01:00
Rainer Gerhards
74387aa2da
Merge pull request #1370 from rgerhards/i-1343
...
debug build: fix invalid assertion
2017-01-17 15:13:03 +01:00
9e5ff29489
imfile: Added testcase for multilevel wildcard directories
...
Also fixed a bug in new wildcard dir handling
found using this test.
2017-01-17 14:38:32 +01:00
2f7b371017
imfile: Fixed an issue generating wrong statefiles when $workdirectory is unset
...
When $WorkDirectory was not configured in rsyslog configuration, invalid
path/filenames were generated for statefiles causing failure on
deleting statefiles and more.
2017-01-17 14:38:32 +01:00
8025057e39
imfile: Fixed multiple bugs in new wildcard directory handling
...
Fixed removal for directory watch and helper functions
Fixed invalid setupdirwatch indexes.
Changed logfile extensions for new tests
2017-01-17 14:38:32 +01:00
3bf605255a
testsuite: Added 3 new tests for imfile checking wildcard support.
...
Testing wildcards matching in filename and directory name including
dynamically adding and removing directories and files.
2017-01-17 14:38:32 +01:00
9a6b321b5b
imfile: Added support for multilevel wildcards (inotify only)
...
imfile supports now wildcards on multiple levels.
Directories can be dynamically added and removed.
Each directory has its own inotify watch.
Initial coding is done, no propper tests have to be added.
2017-01-17 14:38:32 +01:00
Rainer Gerhards
00509ec1e9
debug build: fix invalid assertion
...
closes https://github.com/rsyslog/rsyslog/issues/1343
2017-01-17 12:30:54 +01:00