Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mtail locks watched files on Windows and prevents deletion #807

Open
justai-net opened this issue Feb 12, 2024 · 1 comment
Open

mtail locks watched files on Windows and prevents deletion #807

justai-net opened this issue Feb 12, 2024 · 1 comment
Labels
help wanted mtail-Log Tailing Issues related to log polling and tailing

Comments

@justai-net
Copy link

justai-net commented Feb 12, 2024

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

@jaqx0r
Copy link
Contributor

jaqx0r commented Apr 21, 2024

This might be the same issue as #531

@jaqx0r jaqx0r added the mtail-Log Tailing Issues related to log polling and tailing label May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted mtail-Log Tailing Issues related to log polling and tailing
Projects
None yet
Development

No branches or pull requests

2 participants