Skip to content

in_tail: Fluentd v1.12.3 fails to handle file rotations on Windows #3365

@fujimotos

Description

@fujimotos

Describe the bug

After a few file rotations, in_tail stops tracking log files.

To Reproduce

  1. Run Fluentd with the attached configuration.

  2. Rotate the file twice using cmd.exe

    % cd /opt/td-agent/
    % echo aiueo >> test.log
    % del test.log
    % echo aiueo >> test.log
    % del test.log
  3. Now Fluentd just gets stuck, keeping test.log in DeletePending status forever.

Expected behavior

File rotation should work properly.

Your Environment

  • Windows Server 2016
  • td-agent v4.1.1
  • Fluentd v1.12.3

Your Configuration

<source>
@type tail
 path /opt/td-agent/test.log
 tag test.log
 <parse>
   @type none
 </parse>
</source>

<match test**>
  @type stdout
</match>

Additional context

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwindows

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions