diff options
author | Milan Bartos <milan@bartos.se> | 2013-06-13 10:27:59 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-06-17 07:38:00 +0200 |
commit | 9bfe9108fe5622657a74798ca9a571344f3645a1 (patch) | |
tree | ef8f0e789e9f0cae540e1ef53027d71e5e8d22a6 | |
parent | 82688df6b52c9c1d42ca9919da13f25e2cdb9961 (diff) | |
download | rsyslog-9bfe9108fe5622657a74798ca9a571344f3645a1.tar.gz rsyslog-9bfe9108fe5622657a74798ca9a571344f3645a1.tar.bz2 rsyslog-9bfe9108fe5622657a74798ca9a571344f3645a1.zip |
Rename legacy imjournal configs to have "imjournal" prepended.
modified: doc/imjournal.html
modified: plugins/imjournal/imjournal.c
-rw-r--r-- | doc/imjournal.html | 11 | ||||
-rwxr-xr-x | plugins/imjournal/imjournal.c | 6 |
2 files changed, 14 insertions, 3 deletions
diff --git a/doc/imjournal.html b/doc/imjournal.html index e3f64502..dbf9279e 100644 --- a/doc/imjournal.html +++ b/doc/imjournal.html @@ -41,5 +41,16 @@ $template CEETemplate,"%TIMESTAMP% %HOSTNAME% %syslogtag% @cee: %$!all-json%\n" *.* :mmjsonparse: *.* /var/log/ceelog;CEETemplate </textarea> + +<p><b>Legacy Configuration Directoves</b>:</p> +<ul> +<li><strong>$ImjournalPersistStateInterval [lines]</strong><br> +It specifies how often should the journal state be persisted. This option is useful for rsyslog to start reading from the last journal message it read. +</li> +<li><strong>$ImjournalStateFile /path/to/file</strong><br> +It specifies where the state file for persisting journal state is located. +</li> +</ul> + </body> </html> diff --git a/plugins/imjournal/imjournal.c b/plugins/imjournal/imjournal.c index ae29154d..8f1824c9 100755 --- a/plugins/imjournal/imjournal.c +++ b/plugins/imjournal/imjournal.c @@ -79,7 +79,7 @@ static struct cnfparamblk modpblk = #define DFLT_persiststateinterval 10 -static int bLegacyCnfModGlobalsPermitted = 0;/* are legacy module-global config parameters permitted? */ +static int bLegacyCnfModGlobalsPermitted = 1;/* are legacy module-global config parameters permitted? */ static prop_t *pInputName = NULL; /* there is only one global inputName for all messages generated by this module */ static prop_t *pLocalHostIP = NULL; /* a pseudo-constant propterty for 127.0.0.1 */ @@ -632,9 +632,9 @@ CODEmodInit_QueryRegCFSLineHdlr CHKiRet(prop.CreateStringProp(&pInputName, UCHAR_CONSTANT("imjournal"), sizeof("imjournal") - 1)); CHKiRet(prop.CreateStringProp(&pLocalHostIP, UCHAR_CONSTANT("127.0.0.1"), sizeof("127.0.0.1") - 1)); - CHKiRet(omsdRegCFSLineHdlr((uchar *)"persiststateinterval", 0, eCmdHdlrInt, + CHKiRet(omsdRegCFSLineHdlr((uchar *)"imjournalpersiststateinterval", 0, eCmdHdlrInt, NULL, &cs.iPersistStateInterval, STD_LOADABLE_MODULE_ID)); - CHKiRet(omsdRegCFSLineHdlr((uchar *)"statefile", 0, eCmdHdlrGetWord, + CHKiRet(omsdRegCFSLineHdlr((uchar *)"imjournalstatefile", 0, eCmdHdlrGetWord, NULL, &cs.stateFile, STD_LOADABLE_MODULE_ID)); |