summaryrefslogtreecommitdiffstats
path: root/runtime/ruleset.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-07-17 11:37:53 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-07-17 11:37:53 +0200
commit4c2bef51d1517ad469e0ecf837ec7e87309ba1dd (patch)
tree4fb5e4b13c27c483e03d355dcf4af30933f4de79 /runtime/ruleset.c
parentd4ca9a48d6ae23f0036372563f4480baab361858 (diff)
downloadrsyslog-4c2bef51d1517ad469e0ecf837ec7e87309ba1dd.tar.gz
rsyslog-4c2bef51d1517ad469e0ecf837ec7e87309ba1dd.tar.bz2
rsyslog-4c2bef51d1517ad469e0ecf837ec7e87309ba1dd.zip
milestone: basic local variable functionality available
but some nits, like do not work with disk queues
Diffstat (limited to 'runtime/ruleset.c')
-rw-r--r--runtime/ruleset.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/ruleset.c b/runtime/ruleset.c
index 36222cfb..6c4eae26 100644
--- a/runtime/ruleset.c
+++ b/runtime/ruleset.c
@@ -447,6 +447,11 @@ evalPROPFILT(struct cnfstmt *stmt, msg_t *pMsg)
DBGPRINTF("Filter: check for CEE property '%s' (value '%s') ",
cstr, pszPropVal);
free(cstr);
+ } else if(stmt->d.s_propfilt.propID == PROP_LOCAL_VAR) {
+ cstr = es_str2cstr(stmt->d.s_propfilt.propName, NULL);
+ DBGPRINTF("Filter: check for local var '%s' (value '%s') ",
+ cstr, pszPropVal);
+ free(cstr);
} else {
DBGPRINTF("Filter: check for property '%s' (value '%s') ",
propIDToName(stmt->d.s_propfilt.propID), pszPropVal);