Promtail not scraping single line log (log content having NO newline)

While working I observed that Promtail not scraping single line log (log content having NO newline).

For example, a log file having only below content (a single line json with NO newline char) is “SEEKED” but data is not sent to Loki
{“executionId”:191,“nodes”:“10.0.27.15”}

But if I add a newline char at the end of this json line, data is rightfully sent to loki.

While testing I tried both JSON pipeline stage and no stage.

1 Like

This is expected behaviour; promtail tails the files and splits by newlines.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.