Open runninbutt opened 3 years ago
@runninbutt Thank you for reporting the issue. Can you tell me what is your OS version? uname -a
I cannot reproduce the problem in macOS docker, logstash 7.14.0
I've tried this on both Docker Desktop on Mac and Windows. Macos machine: uname -a:
Darwin xxxx.local 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64
After changes to logstash geoip plugin in >7.14, I can't seem to get logstash up in Docker with previous configuration. When I have geoip filter mentioned in my configuration (.conf file), the container will crash few seconds after startup.
Logstash version: 7.14 < Runtime: Docker from elastics docker repo
Error in logstash log:
Troubleshooting
I can confirm that this worked without any problems in 7.13. It seems to crash due to permission issues while trying to create a directory. I tested to shell into the container with docker exec and tried to create the mentioned folder as the logstash container's user and it fails to do so.
If I add the mentioned directory as an empty folder to logstash in docker-compose.yaml under volumes, i.e.:
then it works.
Find all the rest of the details below.
example.conf: If i comment out the geoip part, it won't crash when starting the container.
docker-compose.yaml logstash:
logstash.yaml: