Skip to content

Behavior when output file is deleted while LS is running #20

@suyograo

Description

@suyograo

From a user:

if I delete an output file that Logstash has been writing to while it is running it does not recreate that file, and it does not error. It just acts like everything is fine and drops all the messages.

This is a bit concerning.

Is there anyway to change this default behavior to create the file if it is missing? Or at least throw an to error?

Steps to reproduce:

  • start up logstash with file output
  • send in input so it creates an output file
  • delete that output file
  • send some more data in
  • logstash will not complain, but no data will be written

Restarting logstash makes it find those files again.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions