Skip to content

*arr log file ingestion produces no log entries (Sonarr/Radarr/Prowlarr/Whisparr) #63

Closed

Description

@vbrzezina

What happens

File ingestion for the *arr apps never creates log entries, even when log paths are configured correctly and the files are discovered and tailed. Jellyfin, Emby and Plex file ingestion is not affected.

Why

There are two independent causes.

  1. Timestamp regex. The *arr apps write their log files with the NLog layout yyyy-MM-dd HH:mm:ss.f, which has one fractional digit, e.g. 2026-10-10 12:00:01.2|Info|RssSyncService|…. NLOG_LINE_REGEX in packages/provider-arr/src/arr.parser.ts requires exactly three digits (\.\d{3}), so real lines don't match.
  2. Context-parser contract. LogFileProcessor finalizes its pending entry before asking the provider to parse a new header line, as the parseLogLineWithContext contract in packages/core/src/types.ts describes (the Emby parser follows it). parseArrLogLineWithContext instead returns the previous entry and stores the current one in the context object, which the processor discards. As a result, no entry is ever emitted. A blank line between a message and its exception (NLog writes one) also used to drop the stack trace.

To reproduce

Mount a Sonarr or Radarr logs/ directory, enable file ingestion for that source, and watch the Logs page: tailing starts, but no *arr file entries appear.

Fix

#57. It fixes both causes and moves exception extraction into an optional finalizeLogEntry hook. It also skips the apps' *.debug.*/*.trace.* rolling logs. Once ingestion actually works, Radarr alone typically has 50+ debug files, and backfilling them exhausted a 384 MB container's Node heap in my deployment. The PR includes end-to-end LogFileProcessor tests with real SonarrProvider and EmbyProvider instances.

Activity

  1. self-assigned this
    on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions