summaryrefslogtreecommitdiffstats
path: root/plugins/imudp
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-06 13:55:04 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-06 13:55:04 +0000
commitdfb2142974bb93c357be88d866fb17ddd39c65f4 (patch)
treef03e2c689355ce47a0d688b49573211647ea9e33 /plugins/imudp
parent8d36b9159f38815660b8c3b4a8e4ce48d0091bdc (diff)
downloadrsyslog-dfb2142974bb93c357be88d866fb17ddd39c65f4.tar.gz
rsyslog-dfb2142974bb93c357be88d866fb17ddd39c65f4.tar.xz
rsyslog-dfb2142974bb93c357be88d866fb17ddd39c65f4.zip
added capability to ignore client-provided timestamp on unix sockets and
made this mode the default; this was needed, as some programs (e.g. sshd) log with inconsistent timezone information, what messes up the local logs (which by default don't even contain time zone information). This seems to be consistent with what sysklogd did for the past four years. Alternate behaviour may be desirable if gateway-like processes send messages via the local log slot - in this case, it can be enabled via the $InputUnixListenSocketIgnoreMsgTimestamp and $SystemLogSocketIgnoreMsgTimestamp config directives
Diffstat (limited to 'plugins/imudp')
-rw-r--r--plugins/imudp/imudp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/imudp/imudp.c b/plugins/imudp/imudp.c
index 70a7b3f7..be9fb6cc 100644
--- a/plugins/imudp/imudp.c
+++ b/plugins/imudp/imudp.c
@@ -189,7 +189,8 @@ CODESTARTrunInput
*/
if(isAllowedSender(pAllowedSenders_UDP,
(struct sockaddr *)&frominet, (char*)fromHostFQDN)) {
- parseAndSubmitMessage((char*)fromHost, (char*) pRcvBuf, l, MSG_PARSE_HOSTNAME);
+ parseAndSubmitMessage((char*)fromHost, (char*) pRcvBuf, l,
+ MSG_PARSE_HOSTNAME, NOFLAG);
} else {
dbgprintf("%s is not an allowed sender\n", (char*)fromHostFQDN);
if(option_DisallowWarning) {