diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-09-05 17:37:55 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-09-05 17:37:55 +0200 |
commit | 37107dead1b79e6dfae26cf02864d431e2078916 (patch) | |
tree | 83e9855e49a37dd895f92a941790730ddb79520e /plugins/imudp/imudp.c | |
parent | c6a428e6935416c3c5d849df560b9492831e704c (diff) | |
download | rsyslog-37107dead1b79e6dfae26cf02864d431e2078916.tar.gz rsyslog-37107dead1b79e6dfae26cf02864d431e2078916.tar.bz2 rsyslog-37107dead1b79e6dfae26cf02864d431e2078916.zip |
imudp: use inputname for statistics, if configured
Diffstat (limited to 'plugins/imudp/imudp.c')
-rw-r--r-- | plugins/imudp/imudp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/imudp/imudp.c b/plugins/imudp/imudp.c index cd856393..908dbde7 100644 --- a/plugins/imudp/imudp.c +++ b/plugins/imudp/imudp.c @@ -273,14 +273,14 @@ addListner(instanceConf_t *inst) newlcnfinfo->next = NULL; newlcnfinfo->sock = newSocks[iSrc]; newlcnfinfo->pRuleset = inst->pBindRuleset; - snprintf((char*)dispname, sizeof(dispname), "imudp(%s:%s)", bindName, port); - dispname[sizeof(dispname)-1] = '\0'; /* just to be on the save side... */ - CHKiRet(ratelimitNew(&newlcnfinfo->ratelimiter, (char*)dispname, NULL)); if(inst->inputname == NULL) { inputname = (uchar*)"imudp"; } else { inputname = inst->inputname; } + snprintf((char*)dispname, sizeof(dispname), "%s(%s:%s)", inputname, bindName, port); + dispname[sizeof(dispname)-1] = '\0'; /* just to be on the save side... */ + CHKiRet(ratelimitNew(&newlcnfinfo->ratelimiter, (char*)dispname, NULL)); if(inst->bAppendPortToInpname) { snprintf((char*)inpnameBuf, sizeof(inpnameBuf), "%s%s", inputname, port); |