diff --git a/CHANGELOG.md b/CHANGELOG.md index e84052bfe47d..0f2a23a49ceb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ Changes: * feature: support IPv6 in Dataplane resource [#567](https://github.com/Kong/kuma/pull/567) +* fix: separate tcp access logs with a new line + [#566](https://github.com/Kong/kuma/pull/566) * feature: validate certificates that users want to use as a `provided` CA [#565](https://github.com/Kong/kuma/pull/565) * fix: add MADS port to K8S install script diff --git a/app/kuma-dp/pkg/dataplane/accesslogs/server.go b/app/kuma-dp/pkg/dataplane/accesslogs/server.go index 3cfff5375bb4..37390314963d 100644 --- a/app/kuma-dp/pkg/dataplane/accesslogs/server.go +++ b/app/kuma-dp/pkg/dataplane/accesslogs/server.go @@ -138,7 +138,7 @@ func formatEntry(entry *envoy_data_accesslog_v2.HTTPAccessLogEntry, format strin } func (s *accessLogServer) sendLog(conn net.Conn, log string) error { - _, err := conn.Write([]byte(log)) + _, err := conn.Write(append([]byte(log), byte('\n'))) return err }