57 Commits

Author SHA1 Message Date
Rainer Gerhards
17e1ee2539 remove memleak introduced by GenerateLocalHostName HUP bugfix 2013-10-28 14:17:56 +01:00
Rainer Gerhards
9a775051f7 bugfix: potential abort during HUP
This could happen when one of imklog, imzmq3, imkmsg, impstats,
imjournal, or imuxsock were under heavy load during a HUP.
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=489
Thanks to Guy Rozendorn for reporting the problem and Peval Levhshin for
his analysis.
2013-10-28 12:56:02 +01:00
Rainer Gerhards
84d9283b9f Merge branch 'master' into master-omjournal 2013-02-27 17:38:36 +01:00
Rainer Gerhards
8700672c76 added ability to configure debug system via rsyslog.conf 2013-02-27 17:37:56 +01:00
Rainer Gerhards
8aad93c582 imuxsock: add capability to ignore messages from ourselfes
This helps prevent message routing loops, and is vital to have
if omjournal is used together with traditional syslog.
2013-02-26 09:58:17 +01:00
Rainer Gerhards
c18c7a0dc6 nit: correct invalid error code 2012-10-24 17:58:09 +02:00
Rainer Gerhards
7fb358a76f Remove no longer needed function
Thanks to Andreas Stieger from Novell/SUSE for alerting us.
This function was introduced as part of the new config system,
but never was actually used (aka "not needed").
2012-09-23 12:33:52 +02:00
Rainer Gerhards
7177afe484 Merge branch 'v5-beta'
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
	plugins/imuxsock/imuxsock.c
	tools/syslogd.c
2012-04-12 15:11:50 +02:00
Rainer Gerhards
e4d87aac95 Merge branch 'v5-stable' into v5-stable-newstats
Conflicts:
	plugins/imuxsock/imuxsock.c
	runtime/glbl.c
2012-04-12 14:10:09 +02:00
Marius Tomaschewski
b498a00e78 Free also LocalDomain in glbl class destructor
Signed-off-by: Marius Tomaschewski <mt@suse.com>
2012-04-11 14:58:06 +02:00
Rainer Gerhards
d0a73d3449 bugfix: hostname was not requeried on HUP
Thanks to Marius Tomaschewski for reporting this bug.
2012-04-11 11:18:41 +02:00
Rainer Gerhards
d6da57ae03 Merge branch 'v5-stable-newstats'
Conflicts:
	action.c
	configure.ac
	doc/imuxsock.html
	plugins/imklog/imklog.c
	plugins/imptcp/imptcp.c
	plugins/imtcp/imtcp.c
	plugins/imudp/imudp.c
	plugins/imuxsock/imuxsock.c
	runtime/glbl.c
	runtime/glbl.h
	runtime/net.c
	runtime/ruleset.c
	tcpsrv.h
	tools/syslogd.c
2012-04-07 15:42:46 +02:00
Rainer Gerhards
1d6d534df2 unified use of $LocalHostIPIF among all locally-emitting inputs
with the exception of imdiag, which I humbly do not think needs this
capabilit (even counter-productive for testbench use).
2012-03-22 16:06:57 +01:00
Rainer Gerhards
49ec54d369 milestone: added capability to use a local interface IP address as fromhost-ip
... for locally originating messages. New directive $LocalHostIPIF.
Note that not all modules yet support this new directive - next step...
2012-03-21 11:43:45 +01:00
Rainer Gerhards
6624ad434b Merge branch 'v6-stable-noscoping' into master
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
	plugins/imfile/imfile.c
	plugins/imklog/imklog.c
	plugins/immark/immark.c
	plugins/imptcp/imptcp.c
	plugins/imrelp/imrelp.c
	plugins/imtcp/imtcp.c
	plugins/imtemplate/imtemplate.c
	plugins/imudp/imudp.c
	plugins/imuxsock/imuxsock.c
	plugins/mmsnmptrapd/mmsnmptrapd.c
	plugins/omtemplate/omtemplate.c
	runtime/glbl.c
	runtime/parser.c
	tools/omfile.c
	tools/syslogd.c
2012-01-19 13:07:46 +01:00
Rainer Gerhards
9b24152b6a undoing v6.1 config scoping interface, part I
The most common files are now changed, more needs to be done.
2012-01-18 18:21:08 +01:00
Rainer Gerhards
9ce9fbb28f milestone: new output plugin interface call added 2011-07-21 11:14:52 +02:00
Rainer Gerhards
a7e3afb20b milestone: added module config names 2011-07-20 10:47:24 +02:00
Rainer Gerhards
02d44ba72d milestone: size syntax implemented 2011-07-19 18:26:26 +02:00
Rainer Gerhards
74c2e98c13 milestone: glbl obj parameters settable via new conf interface 2011-07-19 17:53:23 +02:00
Rainer Gerhards
47c961eac2 milestone: two syntaxes for get conf param implemented 2011-07-19 11:23:57 +02:00
Rainer Gerhards
127d61fea7 milestone: first steps at global() conf obj implementation
also, the foundation for accessing conf file params has been laid. Still
more work to do...
2011-07-19 09:31:17 +02:00
Rainer Gerhards
b71ef4abad Merge branch 'v5-stable' into beta
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
	tests/diag.sh
	tests/sndrcv_drvr.sh
2011-06-21 15:42:11 +02:00
Rainer Gerhards
41d8672524 bugfix/improvement:$WorkDirectory now gracefully handles trailing slashes 2011-06-15 12:20:12 +02:00
Rainer Gerhards
fd4a54698c Merge branch 'v5-stable' into beta
Conflicts:
	tools/omfwd.c
2011-05-09 15:07:22 +02:00
Rainer Gerhards
5bf922d65a bugfix: $LocalHostName was not honored under all circumstances
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=258
2011-05-09 09:14:20 +02:00
Rainer Gerhards
9568e7dbbb Merge branch 'v5-beta'
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
	runtime/glbl.c
	tools/omdiscard.c
2011-02-18 10:51:14 +01:00
Rainer Gerhards
49c2bc380c improved error reporting for $WorkDirectory
non-existance and other detectable problems are now reported,
and the work directory is NOT set in this case
2011-02-15 11:06:15 +01:00
Rainer Gerhards
bcc3b2aef7 Merge branch 'v5-devel'
Conflicts:
	ChangeLog
	action.c
	plugins/imudp/imudp.c
	runtime/glbl.c
2010-12-17 13:20:55 +01:00
Rainer Gerhards
68c13f3f6a Merge branch 'v4-devel' into v5-devel
Conflicts:
	ChangeLog
	configure.ac
	doc/imfile.html
	doc/manual.html
	plugins/imudp/imudp.c
	runtime/msg.h
	tools/syslogd.c
2010-12-17 12:39:59 +01:00
Rainer Gerhards
cc8237736d added $IMUDPSchedulingPolicy and $IMUDPSchedulingPriority config settings 2010-12-17 12:21:17 +01:00
Rainer Gerhards
699d0d933a added $LocalHostName config directive & some bugfixing
- added $LocalHostName config directive
- bugfix: local hostname was pulled too-early, so that some config
  directives (namely FQDN settings) did not have any effect
2010-12-16 15:29:20 +01:00
Rainer Gerhards
e64cd21243 moving towards scoping inside rsyslog.conf
first step: adding object-type specifier to config statement table
2010-07-21 18:08:19 +02:00
Rainer Gerhards
dd76d96d67 adapted new atomic instruction emulation to v5 engine
code did not compile after merge from v4
2010-04-27 18:26:09 +02:00
Rainer Gerhards
4a5a3196fb Merge branch 'v4-devel' into master
Conflicts:
	runtime/Makefile.am
	runtime/atomic.h
	runtime/queue.c
	runtime/queue.h
	runtime/wti.c
	runtime/wti.h
	runtime/wtp.c
	runtime/wtp.h
2010-04-27 17:49:06 +02:00
Rainer Gerhards
0957820a10 Merge branch 'v4-devel'
Conflicts:
	doc/rsyslog_conf_modules.html
	gss-misc.c
	plugins/imgssapi/imgssapi.c
	plugins/imudp/imudp.c
	plugins/imuxsock/imuxsock.c
	runtime/glbl.c
	runtime/glbl.h
	runtime/net.c
2009-11-17 10:38:46 +01:00
Rainer Gerhards
f94a3034b6 integrating varmojfekoj's "unlimited select()" patch into v4-devel 2009-11-17 09:10:24 +01:00
varmojfekoj
30c2e42ec3 added option to use unlimited-size select() calls
Thanks to varmjofekoj for the patch

Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2009-11-17 09:00:01 +01:00
Rainer Gerhards
6f511cecfa more cleanup and working towards a parser module calling interface
I cleaned up a lot of config variable access along the way. This
version compiles and runs, but does not yet offer any enhanced
functionality. pmrfc5424 is just a dummy that is not yet being used.
2009-11-03 12:39:48 +01:00
Rainer Gerhards
7d92de155c internal: added ability to terminate input modules not via pthread_cancel...
... but an alternate approach via pthread_kill. This is somewhat safer as we
do not need to think about the cancel-safeness of all libraries we use.
However, not all inputs can easily supported, so this now is a feature
that can be requested by the input module (the most important ones
request it).
2009-07-20 18:36:30 +02:00
Rainer Gerhards
60a7a0d4d0 $HUPisRestart removed
... but the rest of the code is not yet cleaned-up. Will do that
slowly over time... (huge potential, but must be done carefully)
2009-07-15 12:59:28 +02:00
Rainer Gerhards
a8b583669a CONFIG CHANGE: $HUPisRestart default is now "off".
We are doing this to support removal of restart-type HUP in v5.
Elaborate doc added to explain reasoning and actions to be taken.
2009-07-15 11:12:28 +02:00
Rainer Gerhards
aaffc4281e introduced a new way of handling the RcvFrom property
... plus a fix for a long-time bug in obj-types.h. That lead to
the object pointer only then to become NULL when the object was
actually destructed, I discovered this issue during
introduction of the pRcvFrom property in msg_t, but it potentially had other
effects, too. I am not sure if some experienced instability resulted from this
bug OR if its fix will cause harm to so-far "correctly" running code. The later
may very well be. Thus I will change it only for the current branch and also
the beta, but not in all old builds. Let's see how things evolve.
2009-06-30 18:45:41 +02:00
Rainer Gerhards
31344728fe bufgix: $PreserveFQDN was not properly handled for locally emitted messages 2008-12-20 12:56:41 +01:00
Rainer Gerhards
60b8ce14bf added $PreserveFQDN config file directive
Enables to use FQDNs in sender names where the legacy default
2008-12-08 15:42:47 +01:00
Rainer Gerhards
6334d335d8 added configuration directive "HUPisRestart"
...which enables to configure HUP to be either a full restart
or "just" a leightweight way to close open files
2008-10-23 14:46:47 +02:00
Rainer Gerhards
cf38fc8175 added a setting "$OptimizeForUniprocessor"
...to enable users to turn off pthread_yield calls which are
counter-productive on multiprocessor machines (but have been
shown to be useful on uniprocessors)
2008-10-22 13:54:40 +02:00
Rainer Gerhards
1a9ac0ced7 removed compile time fixed message size limit (was 2K)
The limit can now be set via $MaxMessageSize global config
directive (finally gotten rid of MAXLINE ;))
2008-09-02 11:38:31 +02:00
Rainer Gerhards
aeef9bbe72 bugfix: machine certificate was required for client even in TLS anon mode
Reference: http://bugzilla.adiscon.com/show_bug.cgi?id=85
The fix also slightly improves performance by not storing certificates in
client sessions when there is no need to do so.
2008-07-02 11:56:54 +02:00
Rainer Gerhards
d451808236 reduced number of compile warnings in -pedantic gcc mode 2008-06-27 10:10:47 +02:00