8000 mtail locks watched files on Windows and prevents deletion · Issue #807 · google/mtail · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
This repository was archived by the owner on Oct 23, 2026. It is now read-only.

mtail locks watched files on Windows and prevents deletion #807

Open

Description

@justai-net

Heyo, new here.

Tested with 3.0.0-rc52
OS: Windows

Current environment produces log files with date/time strings in their file names, having to use glob expression with -logs .

Wanting to have:

  • poll_interval 30s~
  • poll_log_interval between 1-12 hrs
.\mtail.exe -logs "C:\somelogs\*\*.log" -progs "C:\mtail_programs\mtail" -poll_interval 30s -poll_log_interval 3h

Tested with --expired_metrics_gc_interval , --stale_log_gc_interval.

Is there a way for mtail to release files and directories?

Current Workaround
Having to create a scheduled task to create/remove symlinks to the desired date/time directories, which is then configured with -logs

Activity

  1. jaqx0r commented on Apr 21, 2024

    @jaqx0r
    Contributor

    This might be the same issue as #531

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0