From: Marc Fournier Date: Fri, 11 Sep 2015 21:59:10 +0000 (+0200) Subject: log_logstash: fix timestamp field to respect ISO 8601 format X-Git-Tag: collectd-5.5.1~62 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a46da0050dfe27715b9bc504ed2988c466de6d32;p=collectd.git log_logstash: fix timestamp field to respect ISO 8601 format Fixes #1132 --- diff --git a/src/log_logstash.c b/src/log_logstash.c index 2883e6c9..2d5f6203 100644 --- a/src/log_logstash.c +++ b/src/log_logstash.c @@ -147,7 +147,7 @@ static void log_logstash_print (yajl_gen g, int severity, * format time as a UTC ISO 8601 compliant string */ strftime (timestamp_str, sizeof (timestamp_str), - "%Y-%m-%d %H:%M:%SZ", ×tamp_tm); + "%Y-%m-%dT%H:%M:%SZ", ×tamp_tm); timestamp_str[sizeof (timestamp_str) - 1] = '\0'; if (yajl_gen_string(g, (u_char *)timestamp_str,