fluentd log driver. failed parse last partial message in fluentd
@@ -165,6 +165,9 @@ func (f *fluentd) Log(msg *logger.Message) error {
}
if msg.PLogMetaData != nil {
data["partial_message"] = "true"
+ data["partial_id"] = msg.PLogMetaData.ID
+ data["partial_ordinal"] = strconv.Itoa(msg.PLogMetaData.Ordinal)
+ data["partial_last"] = strconv.FormatBool(msg.PLogMetaData.Last)
}
ts := msg.Timestamp
