--- a/sysklogd/syslogd.c 2021-12-28 14:31:42.991277765 +0100 +++ b/sysklogd/syslogd.c 2021-12-28 14:39:58.163370925 +0100 @@ -91,6 +91,7 @@ /* To remote log or not to remote log, that is the question. */ static int doRemoteLog = FALSE; +static int doRemoteLogTimestamp = FALSE; static int local_logging = FALSE; #endif @@ -541,7 +542,7 @@ /* if we have a valid socket, send the message */ if (-1 != remotefd) { now = 5; /* used as a retry counter */ - if (rfc5424) { + if (rfc5424 || (doRemoteLogTimestamp == FALSE)) { /* message is already rfc5424 formatted */ snprintf(line, sizeof(line), "<%d>%s\n", pri, msg); } @@ -905,7 +906,7 @@ char *p; /* do normal option parsing */ - while ((opt = getopt(argc, argv, "m:nO:p:s:uSb:R:Ll:k:K:C::")) > 0) { + while ((opt = getopt(argc, argv, "m:nO:p:s:uSb:R:LTl:k:K:C::")) > 0) { switch (opt) { case 'm': MarkInterval = atoi(optarg) * 60; @@ -937,6 +938,9 @@ } doRemoteLog = TRUE; break; + case 'T': + doRemoteLogTimestamp = TRUE; + break; case 'L': local_logging = TRUE; break;