# I use elk in docker , i open xpack secuirty ,but when i restart by docker ,there some error log

**URL:** https://discuss.elastic.co/t/i-use-elk-in-docker-i-open-xpack-secuirty-but-when-i-restart-by-docker-there-some-error-log/340544
**Category:** Logstash
**Tags:** docker
**Created:** [August 10, 2023, 10:11am UTC](https://discuss.elastic.co/t/i-use-elk-in-docker-i-open-xpack-secuirty-but-when-i-restart-by-docker-there-some-error-log/340544 "2023-08-10T10:11:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![yichitgo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yichitgo/32/124513_2.png) [@yichitgo](https://discuss.elastic.co/u/yichitgo)
#### Post date: [August 10, 2023, 10:11am UTC](https://discuss.elastic.co/t/i-use-elk-in-docker-i-open-xpack-secuirty-but-when-i-restart-by-docker-there-some-error-log/340544/1 "2023-08-10T10:11:45Z")

</div>

aiting for Elasticsearch cluster to respond (1/30)  
logstash started.

- Starting Kibana5 [OK]  
touch: cannot touch '/var/log/elasticsearch/{"error":{"root\_cause":[{"type":"security\_exception","reason":"missingauthenticationcredentialsforRESTrequest[/\_cat/health?h=cluster]","header":{"WWW-Authenticate":["Basicrealm="security"charset="UTF-8"","ApiKey"]}}],"type":"security\_exception","reason":"missingauthenticationcredentialsforRESTrequest[/\_cat/health?h=cluster]","header":{"WWW-Authenticate":["Basicrealm="security"charset="UTF-8"","ApiKey"]}},"status":401}.log': No such file or directory  
tail: cannot open '/var/log/elasticsearch/{"error":{"root\_cause":[{"type":"security\_exception","reason":"missingauthenticationcredentialsforRESTrequest[/\_cat/health?h=cluster]","header":{"WWW-Authenticate":["Basicrealm="security"charset="UTF-8"","ApiKey"]}}],"type":"security\_exception","reason":"missingauthenticationcredentialsforRESTrequest[/\_cat/health?h=cluster]","header":{"WWW-Authenticate":["Basicrealm="security"charset="UTF-8"","ApiKey"]}},"status":401}.log' for reading: No such file or directory  
==\> /var/log/logstash/logstash-plain.log \<==  
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:753) ~[jruby.jar:?]  
at opt.logstash.lib.bootstrap.environment.(/opt/logstash/lib/bootstrap/environment.rb:91) ~[?:?]  
[2023-08-10T09:42:51,246][INFO][logstash.runner] Log4j configuration path used is: /opt/logstash/config/log4j2.properties  
[2023-08-10T09:42:52,325][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"8.7.1", "jruby.version"=\>"jruby 9.3.10.0 (2.6.8) 2023-02-01 107b2e6697 OpenJDK 64-Bit Server VM 17.0.7+7 on 17.0.7+7 +indy +jit [x86\_64-linux]"}  
[2023-08-10T09:42:52,329][INFO][logstash.runner] JVM bootstrap flags: [-Xms1g, -Xmx1g, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djruby.compile.invokedynamic=true, -XX:+HeapDumpOnOutOfMemoryError, -Djava.security.egd=file:/dev/urandom, -Dlog4j2.isThreadContextMapInheritable=true, -Djava.io.tmpdir=/opt/logstash, -Djruby.regexp.interruptible=true, -Djdk.io.File.enableADS=true, --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED, --add-opens=java.base/java.security=ALL-UNNAMED, --add-opens=java.base/java.io=ALL-UNNAMED, --add-opens=java.base/java.nio.channels=ALL-UNNAMED, --add-opens=java.base/sun.nio.ch=ALL-UNNAMED, --add-opens=java.management/sun.management=ALL-UNNAMED]  
[2023-08-10T09:42:52,606][FATAL][org.logstash.Logstash] Logstash stopped processing because of an error: (SystemExit) exit  
org.jruby.exceptions.SystemExit: (SystemExit) exit  
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:790) ~[jruby.jar:?]  
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:753) ~[jruby.jar:?]  
at opt.logstash.lib.bootstrap.environment.(/opt/logstash/lib/bootstrap/environment.rb:91) ~[?:?]

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 7, 2023, 10:12am UTC](https://discuss.elastic.co/t/i-use-elk-in-docker-i-open-xpack-secuirty-but-when-i-restart-by-docker-there-some-error-log/340544/2 "2023-09-07T10:12:16Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
