Skip to content

Commit

Permalink
Reconstruct multiline docker logs by default
Browse files Browse the repository at this point in the history
A recombine operator for OTel logs collection to reconstruct multiline logs on docker engine
  • Loading branch information
dmitryax committed Jun 22, 2022
1 parent ac82f49 commit 9445a4b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased

### Added

- A recombine operator for OTel logs collection to reconstruct multiline logs on docker engine (#465)

### Changed

- Scrape /proc/self/mountinfo in agent pods to avoid incorrect stat attempts (#467)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,12 @@ receivers:
timestamp:
parse_from: attributes.time
layout: '%Y-%m-%dT%H:%M:%S.%LZ'
- type: recombine
id: docker-recombine
output: handle_empty_log
combine_field: attributes.log
source_identifier: attributes["log.file.path"]
is_last_entry: attributes.log endsWith "\n"
{{- end }}
- type: add
id: handle_empty_log
Expand Down

0 comments on commit 9445a4b

Please sign in to comment.