diff --git a/CHANGELOG/7.7.2.md b/CHANGELOG/7.7.2.md index ab13b820..386d2f93 100644 --- a/CHANGELOG/7.7.2.md +++ b/CHANGELOG/7.7.2.md @@ -4,3 +4,4 @@ _Release Date: MONTH DAYst, 2025_ **Release Notes:** * Allow `--nodes` selector in `aerolab aerospike is-stable` command. +* Fix small bug in log ingest relating to special log types. diff --git a/src/ingest/preprocess-special.go b/src/ingest/preprocess-special.go index 97c5974a..8a63f229 100644 --- a/src/ingest/preprocess-special.go +++ b/src/ingest/preprocess-special.go @@ -160,6 +160,9 @@ func (i *Ingest) preProcessSpecial(fn string, mimeType *mimetype.MIME) (fnlist [ tracker[fn+"_special-split_"+ident] = out fnlist = append(fnlist, fn+"_special-split_"+ident) } + if !strings.HasSuffix(line, "\n") { + line = line + "\n" + } _, err = tracker[fn+"_special-split_"+ident].WriteString(line) if err != nil { return fnlist, err