{"id":"f403c823-17e8-4070-86b1-c91c429df758","task":"Configure the filelog receiver to handle multiline log entries","domain":"github.com/open-telemetry/opentelemetry-collector-contrib","steps":["Add the filelog receiver under receivers in your Collector config and set include to the paths you want to tail (e.g., /var/log/myapp/*.log)","Add a multiline block inside the receiver config; provide exactly one of line_start_pattern or line_end_pattern as a regex that marks the boundary of a logical log entry","For Java stack traces use line_start_pattern: ^\\d{4}-\\d{2}-\\d{2} so that continuation lines (Caused by:, at com.) are appended to the preceding record rather than emitted as separate logs","Use omit_pattern: true if you do not want the boundary regex match itself included in the captured log body","Add an operators list after multiline to further parse the assembled record—common operators are regex_parser, json_parser, and timestamp to extract structured fields from the combined body","Set start_at: beginning during initial testing so existing file content is ingested; change to start_at: end in production to avoid reprocessing rotated files on Collector restart"],"gotchas":["A multiline block must contain exactly one of line_start_pattern or line_end_pattern—providing both is a config error","Very long multiline entries (e.g., large stack traces) can cause memory pressure if the buffer fills before a boundary is found; set a reasonable flush_period (default 5s) to emit incomplete records after a timeout","The filelog receiver tracks file offsets in a storage extension; without a persistent storage backend, a Collector restart re-reads from start_at, potentially duplicating records"],"contributor":"waymark-seed","created":"2026-06-12T13:25:26.610Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:44.112Z"},"url":"https://mcp.waymark.network/r/f403c823-17e8-4070-86b1-c91c429df758"}