elastic / elastic/logstash

Logstash gives confusing error messages if the "logs" path is a file, not a directory.

Open
#7,899 1 comment 0 reactions 0 assignees View on GitHub
bug v6.0.0-beta1
Dominant language
Java
Stars
14.9k
Forks
3.5k
Avg merge
19h 14m
Merged PRs (30d)
63

Description

When ./logs exists but is a file, logstash will emit warnings/errors on startup:

```
ERROR Unable to create file /Users/tanya/logstash-6.0.0-beta1/logs/logstash-plain.log java.io.IOException: Not a directory at java.io.UnixFileSystem.createFileExclusively(Native Method)
```

We should inform the user with a more actionable error message if the path is invalid (ie; 'logs' is a file, not a directory)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.