diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-09-10 14:58:17 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-09-10 14:58:17 +0200 |
commit | de8d8b89a4d3fc4e6cff6b8ab26132896624421e (patch) | |
tree | b1fc5fb6c50da31704e0c69a027b27db030c5067 /plugins/omelasticsearch/omelasticsearch.c | |
parent | 7cbc950cb1a5c246c955c83ac3ac51ecfcd0d3fa (diff) | |
download | rsyslog-de8d8b89a4d3fc4e6cff6b8ab26132896624421e.tar.gz rsyslog-de8d8b89a4d3fc4e6cff6b8ab26132896624421e.tar.bz2 rsyslog-de8d8b89a4d3fc4e6cff6b8ab26132896624421e.zip |
omelasticsearch: adapt to new stats subsystem extensions
Diffstat (limited to 'plugins/omelasticsearch/omelasticsearch.c')
-rw-r--r-- | plugins/omelasticsearch/omelasticsearch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/omelasticsearch/omelasticsearch.c b/plugins/omelasticsearch/omelasticsearch.c index aea8e321..3e5cb4c5 100644 --- a/plugins/omelasticsearch/omelasticsearch.c +++ b/plugins/omelasticsearch/omelasticsearch.c @@ -995,13 +995,13 @@ CODEmodInit_QueryRegCFSLineHdlr CHKiRet(statsobj.Construct(&indexStats)); CHKiRet(statsobj.SetName(indexStats, (uchar *)"elasticsearch")); CHKiRet(statsobj.AddCounter(indexStats, (uchar *)"connfail", - ctrType_IntCtr, &indexConFail)); + ctrType_IntCtr, CTR_FLAG_RESETTABLE, &indexConFail)); CHKiRet(statsobj.AddCounter(indexStats, (uchar *)"submits", - ctrType_IntCtr, &indexSubmit)); + ctrType_IntCtr, CTR_FLAG_RESETTABLE, &indexSubmit)); CHKiRet(statsobj.AddCounter(indexStats, (uchar *)"failed", - ctrType_IntCtr, &indexFailed)); + ctrType_IntCtr, CTR_FLAG_RESETTABLE, &indexFailed)); CHKiRet(statsobj.AddCounter(indexStats, (uchar *)"success", - ctrType_IntCtr, &indexSuccess)); + ctrType_IntCtr, CTR_FLAG_RESETTABLE, &indexSuccess)); CHKiRet(statsobj.ConstructFinalize(indexStats)); ENDmodInit |