Skip to content

file_completed_action delete not working for gzip files #256

Open
@hkelley

Description

@hkelley

I didn't get a reply on the forum so I'm posting here.

When I read .gz log files, the files are not being deleted after logstash processing. When I read an uncompressed file it seems to delete correctly.

  • Windows 10
  • logstash-input-file (4.1.11)
  • logstash-7.4.2
input { 
	file {		
		path => "C:/temp/CS_dump/logstash-pickup/part-*.gz"  
		sincedb_path => "NUL"
		codec => json
		mode => "read"
		file_completed_action => "delete"
	}
}

I can create and delete files in the folder so I don't see how it could be a permission issue. I don't see any errors in the logs related to a failed delete attempt.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions