docker安装elaticsearch

136 阅读22分钟
[root@localhost ~]# docker ps
CONTAINER ID   IMAGE                      COMMAND                  CREATED        STATUS          PORTS                                                  NAMES
5f760caa9ced   nacos/nacos-server:1.4.2   "bin/docker-startup.…"   2 weeks ago    Up 34 seconds   0.0.0.0:8848->8848/tcp, :::8848->8848/tcp              nacos
e4b1139c8624   redis                      "docker-entrypoint.s…"   2 months ago   Up 34 seconds   0.0.0.0:6379->6379/tcp, :::6379->6379/tcp              mall-redis
64060baae15b   mysql:5.7                  "docker-entrypoint.s…"   2 months ago   Up 34 seconds   0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060/tcp   mysql
[root@localhost ~]# docker images
REPOSITORY           TAG       IMAGE ID       CREATED         SIZE
redis                latest    1ca2c2a1b554   2 months ago    117MB
mysql                5.7       a3d35804fa37   2 months ago    462MB
nacos/nacos-server   1.4.2     938169b118c7   14 months ago   956MB
[root@localhost ~]# docker pull elasticsearch:7.4.2
7.4.2: Pulling from library/elasticsearch
d8d02d457314: Pull complete 
f26fec8fc1eb: Pull complete 
8177ad1fe56d: Pull complete 
d8fdf75b73c1: Pull complete 
47ac89c1da81: Pull complete 
fc8e09b48887: Pull complete 
367b97f47d5c: Pull complete 
Digest: sha256:543bf7a3d61781bad337d31e6cc5895f16b55aed4da48f40c346352420927f74
Status: Downloaded newer image for elasticsearch:7.4.2
docker.io/library/elasticsearch:7.4.2
[root@localhost ~]# docker ps
CONTAINER ID   IMAGE                      COMMAND                  CREATED        STATUS          PORTS                                                  NAMES
5f760caa9ced   nacos/nacos-server:1.4.2   "bin/docker-startup.…"   2 weeks ago    Up 12 minutes   0.0.0.0:8848->8848/tcp, :::8848->8848/tcp              nacos
e4b1139c8624   redis                      "docker-entrypoint.s…"   2 months ago   Up 12 minutes   0.0.0.0:6379->6379/tcp, :::6379->6379/tcp              mall-redis
64060baae15b   mysql:5.7                  "docker-entrypoint.s…"   2 months ago   Up 12 minutes   0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060/tcp   mysql
[root@localhost ~]# docker images
REPOSITORY           TAG       IMAGE ID       CREATED         SIZE
redis                latest    1ca2c2a1b554   2 months ago    117MB
mysql                5.7       a3d35804fa37   2 months ago    462MB
nacos/nacos-server   1.4.2     938169b118c7   14 months ago   956MB
elasticsearch        7.4.2     b1179d41a7b4   2 years ago     855MB
[root@localhost ~]# mkdir -p /mydata/elasticsearch/config
[root@localhost ~]# mkdir -p /mydata/elasticsearch/data
[root@localhost ~]# echo "http.host : 0.0.0.0" >> /mydata/elasticsearch/config/elasticsearch.yml
[root@localhost ~]# docker run --name elasticsearch -p 9200:9200 -p 9300:9300 \-e "discovery.type=single-node" -e ES_JAVA_OPTS="-Xms64m -Xmx128m" -v /mydata/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml -v /mydata/elasticsearch/data:/usr/share/elasticsearch/data -v /mydata/elasticsearch/plugins:/usr/share/elasticsearch/plugins -d elasticsearch:7.4.2
ea8dd5cbf59c550cc55f1acd13be07eaff4b28dbf70cd19158d26df57f76c806
[root@localhost ~]# docker ps
CONTAINER ID   IMAGE                      COMMAND                  CREATED        STATUS          PORTS                                                  NAMES
5f760caa9ced   nacos/nacos-server:1.4.2   "bin/docker-startup.…"   2 weeks ago    Up 15 minutes   0.0.0.0:8848->8848/tcp, :::8848->8848/tcp              nacos
e4b1139c8624   redis                      "docker-entrypoint.s…"   2 months ago   Up 15 minutes   0.0.0.0:6379->6379/tcp, :::6379->6379/tcp              mall-redis
64060baae15b   mysql:5.7                  "docker-entrypoint.s…"   2 months ago   Up 15 minutes   0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060/tcp   mysql
[root@localhost ~]# docker ps -a
CONTAINER ID   IMAGE                      COMMAND                  CREATED          STATUS                     PORTS                                                  NAMES
ea8dd5cbf59c   elasticsearch:7.4.2        "/usr/local/bin/dock…"   13 seconds ago   Exited (1) 7 seconds ago                                                          elasticsearch
5f760caa9ced   nacos/nacos-server:1.4.2   "bin/docker-startup.…"   2 weeks ago      Up 15 minutes              0.0.0.0:8848->8848/tcp, :::8848->8848/tcp              nacos
e4b1139c8624   redis                      "docker-entrypoint.s…"   2 months ago     Up 15 minutes              0.0.0.0:6379->6379/tcp, :::6379->6379/tcp              mall-redis
64060baae15b   mysql:5.7                  "docker-entrypoint.s…"   2 months ago     Up 15 minutes              0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060/tcp   mysql
[root@localhost ~]# docker logs ea8d
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
{"type": "server", "timestamp": "2022-07-17T12:01:19,388Z", "level": "WARN", "component": "o.e.b.ElasticsearchUncaughtExceptionHandler", "cluster.name": "elasticsearch", "node.name": "ea8dd5cbf59c", "message": "uncaught exception in thread [main]", 
"stacktrace": ["org.elasticsearch.bootstrap.StartupException: ElasticsearchException[failed to bind service]; nested: AccessDeniedException[/usr/share/elasticsearch/data/nodes];",
"at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:163) ~[elasticsearch-7.4.2.jar:7.4.2]",
"at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-7.4.2.jar:7.4.2]",
"at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-7.4.2.jar:7.4.2]",
"at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:125) ~[elasticsearch-cli-7.4.2.jar:7.4.2]",
"at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-7.4.2.jar:7.4.2]",
"at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) ~[elasticsearch-7.4.2.jar:7.4.2]",
"at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-7.4.2.jar:7.4.2]",
"Caused by: org.elasticsearch.ElasticsearchException: failed to bind service",
"at org.elasticsearch.node.Node.<init>(Node.java:614) ~[elasticsearch-7.4.2.jar:7.4.2]",
"at org.elasticsearch.node.Node.<init>(Node.java:255) ~[elasticsearch-7.4.2.jar:7.4.2]",
"at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:221) ~[elasticsearch-7.4.2.jar:7.4.2]",
"at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:221) ~[elasticsearch-7.4.2.jar:7.4.2]",
"at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:349) ~[elasticsearch-7.4.2.jar:7.4.2]",
"at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.4.2.jar:7.4.2]",
"... 6 more",
"Caused by: java.nio.file.AccessDeniedException: /usr/share/elasticsearch/data/nodes",
"at sun.nio.fs.UnixException.translateToIOException(UnixException.java:90) ~[?:?]",
"at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]",
"at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) ~[?:?]",
"at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:389) ~[?:?]",
"at java.nio.file.Files.createDirectory(Files.java:693) ~[?:?]",
"at java.nio.file.Files.createAndCheckIsDirectory(Files.java:800) ~[?:?]",
"at java.nio.file.Files.createDirectories(Files.java:786) ~[?:?]",
"at org.elasticsearch.env.NodeEnvironment.lambda$new$0(NodeEnvironment.java:272) ~[elasticsearch-7.4.2.jar:7.4.2]",
"at org.elasticsearch.env.NodeEnvironment$NodeLock.<init>(NodeEnvironment.java:209) ~[elasticsearch-7.4.2.jar:7.4.2]",
"at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:269) ~[elasticsearch-7.4.2.jar:7.4.2]",
"at org.elasticsearch.node.Node.<init>(Node.java:275) ~[elasticsearch-7.4.2.jar:7.4.2]",
"at org.elasticsearch.node.Node.<init>(Node.java:255) ~[elasticsearch-7.4.2.jar:7.4.2]",
"at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:221) ~[elasticsearch-7.4.2.jar:7.4.2]",
"at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:221) ~[elasticsearch-7.4.2.jar:7.4.2]",
"at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:349) ~[elasticsearch-7.4.2.jar:7.4.2]",
"at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.4.2.jar:7.4.2]",
"... 6 more"] }
[root@localhost ~]# cd /mydata
[root@localhost mydata]# ll
total 0
drwxr-xr-x. 5 root root 47 Jul 17 12:01 elasticsearch
drwxr-xr-x. 5 root root 41 May 15 05:17 mysql
drwxr-xr-x. 3 root root 18 Jun 27 14:11 nacos
drwxr-xr-x. 4 root root 30 May 15 06:24 redis
[root@localhost mydata]# cd elasticsearch/
[root@localhost elasticsearch]# ll
total 0
drwxr-xr-x. 2 root root 31 Jul 17 12:00 config
drwxr-xr-x. 2 root root  6 Jul 17 12:00 data
drwxr-xr-x. 2 root root  6 Jul 17 12:01 plugins
[root@localhost elasticsearch]# chmod -R 777 /mydata/elasticsearch/
[root@localhost elasticsearch]# docker start ea8d
ea8d
[root@localhost elasticsearch]# docker ps
CONTAINER ID   IMAGE                      COMMAND                  CREATED              STATUS          PORTS                                                                                  NAMES
ea8dd5cbf59c   elasticsearch:7.4.2        "/usr/local/bin/dock…"   About a minute ago   Up 5 seconds    0.0.0.0:9200->9200/tcp, :::9200->9200/tcp, 0.0.0.0:9300->9300/tcp, :::9300->9300/tcp   elasticsearch
5f760caa9ced   nacos/nacos-server:1.4.2   "bin/docker-startup.…"   2 weeks ago          Up 16 minutes   0.0.0.0:8848->8848/tcp, :::8848->8848/tcp                                              nacos
e4b1139c8624   redis                      "docker-entrypoint.s…"   2 months ago         Up 16 minutes   0.0.0.0:6379->6379/tcp, :::6379->6379/tcp                                              mall-redis
64060baae15b   mysql:5.7                  "docker-entrypoint.s…"   2 months ago         Up 16 minutes   0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060/tcp                                   mysql
[root@localhost elasticsearch]# 

[root@localhost ~]# docker pull kibana:7.4.2
7.4.2: Pulling from library/kibana
d8d02d457314: Already exists 
bc64069ca967: Pull complete 
c7aae8f7d300: Pull complete 
8da0971e3b41: Pull complete 
58ea4bb2901c: Pull complete 
b1e21d4c2a7e: Pull complete 
3953eac632cb: Pull complete 
5f4406500758: Pull complete 
340d85e0d1c7: Pull complete 
1768564d16fb: Pull complete 
Digest: sha256:355f9c979dc9cdac3ff9a75a817b8b7660575e492bf7dbe796e705168f167efc
Status: Downloaded newer image for kibana:7.4.2
docker.io/library/kibana:7.4.2
[root@localhost ~]# docker run --name kibana -e ELASTICSEARCH_HOSTS=http://192.168.56.100:9200 -p 5601:5601 -d kibana:7.4.2
8748cf4d6c19b91e51e51ba8247e4ac91ce5bce7a7c07c93f427680b8dc3a855
[root@localhost ~]# docker ps
CONTAINER ID   IMAGE                      COMMAND                  CREATED              STATUS              PORTS                                                                                  NAMES
8748cf4d6c19   kibana:7.4.2               "/usr/local/bin/dumb…"   About a minute ago   Up About a minute   0.0.0.0:5601->5601/tcp, :::5601->5601/tcp                                              kibana
ea8dd5cbf59c   elasticsearch:7.4.2        "/usr/local/bin/dock…"   26 minutes ago       Up 24 minutes       0.0.0.0:9200->9200/tcp, :::9200->9200/tcp, 0.0.0.0:9300->9300/tcp, :::9300->9300/tcp   elasticsearch
5f760caa9ced   nacos/nacos-server:1.4.2   "bin/docker-startup.…"   2 weeks ago          Up 41 minutes       0.0.0.0:8848->8848/tcp, :::8848->8848/tcp                                              nacos
e4b1139c8624   redis                      "docker-entrypoint.s…"   2 months ago         Up 41 minutes       0.0.0.0:6379->6379/tcp, :::6379->6379/tcp                                              mall-redis
64060baae15b   mysql:5.7                  "docker-entrypoint.s…"   2 months ago         Up 41 minutes       0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060/tcp                                   mysql
[root@localhost ~]# docker logs 8748
{"type":"log","@timestamp":"2022-07-17T12:26:39Z","tags":["info","plugins-system"],"pid":7,"message":"Setting up [4] plugins: [security,inspector,translations,data]"}
{"type":"log","@timestamp":"2022-07-17T12:26:39Z","tags":["info","plugins","security"],"pid":7,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2022-07-17T12:26:39Z","tags":["warning","plugins","security","config"],"pid":7,"message":"Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml"}
{"type":"log","@timestamp":"2022-07-17T12:26:39Z","tags":["warning","plugins","security","config"],"pid":7,"message":"Session cookies will be transmitted over insecure connections. This is not recommended."}
{"type":"log","@timestamp":"2022-07-17T12:26:40Z","tags":["info","plugins","translations"],"pid":7,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2022-07-17T12:26:40Z","tags":["info","plugins","data"],"pid":7,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2022-07-17T12:26:40Z","tags":["info","plugins-system"],"pid":7,"message":"Starting [3] plugins: [security,translations,data]"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:kibana@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:elasticsearch@7.4.2","info"],"pid":7,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:xpack_main@7.4.2","info"],"pid":7,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:telemetry@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:graph@7.4.2","info"],"pid":7,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:monitoring@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:spaces@7.4.2","info"],"pid":7,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:security@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:searchprofiler@7.4.2","info"],"pid":7,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:ml@7.4.2","info"],"pid":7,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:tilemap@7.4.2","info"],"pid":7,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:watcher@7.4.2","info"],"pid":7,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:grokdebugger@7.4.2","info"],"pid":7,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:dashboard_mode@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:logstash@7.4.2","info"],"pid":7,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:beats_management@7.4.2","info"],"pid":7,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:apm_oss@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:apm@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:code@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:data@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:visualizations@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:interpreter@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:tile_map@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:task_manager@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:maps@7.4.2","info"],"pid":7,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:canvas@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:license_management@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:cloud@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:index_management@7.4.2","info"],"pid":7,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:console@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:console_extensions@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:index_lifecycle_management@7.4.2","info"],"pid":7,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:metrics@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:infra@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:rollup@7.4.2","info"],"pid":7,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["info","siem"],"pid":7,"message":"Plugin initializing"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["info","siem"],"pid":7,"message":"Plugin done initializing"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:siem@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:remote_clusters@7.4.2","info"],"pid":7,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:30Z","tags":["status","plugin:cross_cluster_replication@7.4.2","info"],"pid":7,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:31Z","tags":["status","plugin:upgrade_assistant@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:31Z","tags":["status","plugin:uptime@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:31Z","tags":["status","plugin:oss_telemetry@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:31Z","tags":["status","plugin:file_upload@7.4.2","info"],"pid":7,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:31Z","tags":["warning","encrypted_saved_objects"],"pid":7,"message":"Generating a random key for xpack.encrypted_saved_objects.encryptionKey. To be able to decrypt encrypted saved objects attributes after restart, please set xpack.encrypted_saved_objects.encryptionKey in kibana.yml"}
{"type":"log","@timestamp":"2022-07-17T12:28:31Z","tags":["status","plugin:encrypted_saved_objects@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:31Z","tags":["status","plugin:snapshot_restore@7.4.2","info"],"pid":7,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:31Z","tags":["status","plugin:kibana_react@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:31Z","tags":["status","plugin:region_map@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:31Z","tags":["status","plugin:timelion@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:31Z","tags":["status","plugin:ui_metric@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:31Z","tags":["status","plugin:markdown_vis@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:31Z","tags":["status","plugin:metric_vis@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:31Z","tags":["status","plugin:table_vis@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:31Z","tags":["status","plugin:tagcloud@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:31Z","tags":["status","plugin:vega@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:28:31Z","tags":["reporting","browser-driver","warning"],"pid":7,"message":"Enabling the Chromium sandbox provides an additional layer of protection."}
{"type":"log","@timestamp":"2022-07-17T12:28:39Z","tags":["status","plugin:elasticsearch@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
Could not create APM Agent configuration: Request Timeout after 30000ms
{"type":"log","@timestamp":"2022-07-17T12:29:12Z","tags":["license","warning","xpack"],"pid":7,"message":"License information from the X-Pack plugin could not be obtained from Elasticsearch for the [data] cluster. Error: Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:29:12Z","tags":["status","plugin:xpack_main@7.4.2","error"],"pid":7,"state":"red","message":"Status changed from yellow to red - Request Timeout after 30000ms","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2022-07-17T12:29:12Z","tags":["status","plugin:graph@7.4.2","error"],"pid":7,"state":"red","message":"Status changed from yellow to red - Request Timeout after 30000ms","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2022-07-17T12:29:12Z","tags":["status","plugin:spaces@7.4.2","error"],"pid":7,"state":"red","message":"Status changed from yellow to red - Request Timeout after 30000ms","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2022-07-17T12:29:12Z","tags":["status","plugin:searchprofiler@7.4.2","error"],"pid":7,"state":"red","message":"Status changed from yellow to red - Request Timeout after 30000ms","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2022-07-17T12:29:12Z","tags":["status","plugin:ml@7.4.2","error"],"pid":7,"state":"red","message":"Status changed from yellow to red - Request Timeout after 30000ms","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2022-07-17T12:29:12Z","tags":["status","plugin:tilemap@7.4.2","error"],"pid":7,"state":"red","message":"Status changed from yellow to red - Request Timeout after 30000ms","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2022-07-17T12:29:12Z","tags":["status","plugin:watcher@7.4.2","error"],"pid":7,"state":"red","message":"Status changed from yellow to red - Request Timeout after 30000ms","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2022-07-17T12:29:12Z","tags":["status","plugin:grokdebugger@7.4.2","error"],"pid":7,"state":"red","message":"Status changed from yellow to red - Request Timeout after 30000ms","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2022-07-17T12:29:12Z","tags":["status","plugin:logstash@7.4.2","error"],"pid":7,"state":"red","message":"Status changed from yellow to red - Request Timeout after 30000ms","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2022-07-17T12:29:12Z","tags":["status","plugin:beats_management@7.4.2","error"],"pid":7,"state":"red","message":"Status changed from yellow to red - Request Timeout after 30000ms","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2022-07-17T12:29:12Z","tags":["status","plugin:maps@7.4.2","error"],"pid":7,"state":"red","message":"Status changed from yellow to red - Request Timeout after 30000ms","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2022-07-17T12:29:12Z","tags":["status","plugin:index_management@7.4.2","error"],"pid":7,"state":"red","message":"Status changed from yellow to red - Request Timeout after 30000ms","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2022-07-17T12:29:12Z","tags":["status","plugin:index_lifecycle_management@7.4.2","error"],"pid":7,"state":"red","message":"Status changed from yellow to red - Request Timeout after 30000ms","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2022-07-17T12:29:12Z","tags":["status","plugin:rollup@7.4.2","error"],"pid":7,"state":"red","message":"Status changed from yellow to red - Request Timeout after 30000ms","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2022-07-17T12:29:12Z","tags":["status","plugin:remote_clusters@7.4.2","error"],"pid":7,"state":"red","message":"Status changed from yellow to red - Request Timeout after 30000ms","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2022-07-17T12:29:12Z","tags":["status","plugin:cross_cluster_replication@7.4.2","error"],"pid":7,"state":"red","message":"Status changed from yellow to red - Request Timeout after 30000ms","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2022-07-17T12:29:12Z","tags":["status","plugin:file_upload@7.4.2","error"],"pid":7,"state":"red","message":"Status changed from yellow to red - Request Timeout after 30000ms","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2022-07-17T12:29:12Z","tags":["status","plugin:snapshot_restore@7.4.2","error"],"pid":7,"state":"red","message":"Status changed from yellow to red - Request Timeout after 30000ms","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"error","@timestamp":"2022-07-17T12:29:13Z","tags":["warning","process"],"pid":7,"level":"error","error":{"message":"Error: Request Timeout after 30000ms\n    at /usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:397:9\n    at Timeout.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:429:7)\n    at ontimeout (timers.js:436:11)\n    at tryOnTimeout (timers.js:300:5)\n    at listOnTimeout (timers.js:263:5)\n    at Timer.processTimers (timers.js:223:10)","name":"UnhandledPromiseRejectionWarning","stack":"UnhandledPromiseRejectionWarning: Error: Request Timeout after 30000ms\n    at /usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:397:9\n    at Timeout.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:429:7)\n    at ontimeout (timers.js:436:11)\n    at tryOnTimeout (timers.js:300:5)\n    at listOnTimeout (timers.js:263:5)\n    at Timer.processTimers (timers.js:223:10)\n    at emitWarning (internal/process/promises.js:81:15)\n    at emitPromiseRejectionWarnings (internal/process/promises.js:120:9)\n    at process._tickCallback (internal/process/next_tick.js:69:34)"},"message":"Error: Request Timeout after 30000ms\n    at /usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:397:9\n    at Timeout.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:429:7)\n    at ontimeout (timers.js:436:11)\n    at tryOnTimeout (timers.js:300:5)\n    at listOnTimeout (timers.js:263:5)\n    at Timer.processTimers (timers.js:223:10)"}
{"type":"error","@timestamp":"2022-07-17T12:29:13Z","tags":["warning","process"],"pid":7,"level":"error","error":{"message":"Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)","name":"UnhandledPromiseRejectionWarning","stack":"Error: Request Timeout after 30000ms\n    at /usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:397:9\n    at Timeout.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:429:7)\n    at ontimeout (timers.js:436:11)\n    at tryOnTimeout (timers.js:300:5)\n    at listOnTimeout (timers.js:263:5)\n    at Timer.processTimers (timers.js:223:10)"},"message":"Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)"}
{"type":"log","@timestamp":"2022-07-17T12:29:37Z","tags":["reporting","warning"],"pid":7,"message":"Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml"}
{"type":"log","@timestamp":"2022-07-17T12:29:38Z","tags":["status","plugin:reporting@7.4.2","error"],"pid":7,"state":"red","message":"Status changed from uninitialized to red - Request Timeout after 30000ms","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2022-07-17T12:29:41Z","tags":["status","plugin:security@7.4.2","error"],"pid":7,"state":"red","message":"Status changed from green to red - Request Timeout after 30000ms","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["license","info","xpack"],"pid":7,"message":"Imported license information from Elasticsearch for the [data] cluster: mode: basic | status: active"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["status","plugin:xpack_main@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["status","plugin:graph@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["status","plugin:searchprofiler@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["status","plugin:ml@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["status","plugin:tilemap@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["status","plugin:watcher@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["status","plugin:grokdebugger@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["status","plugin:logstash@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["status","plugin:beats_management@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["status","plugin:index_management@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["status","plugin:index_lifecycle_management@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["status","plugin:rollup@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["status","plugin:remote_clusters@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["status","plugin:cross_cluster_replication@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["status","plugin:file_upload@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["status","plugin:snapshot_restore@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["status","plugin:reporting@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["info","monitoring","kibana-monitoring"],"pid":7,"message":"Starting monitoring stats collection"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["status","plugin:maps@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:29:50Z","tags":["status","plugin:security@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:29:51Z","tags":["info","migrations"],"pid":7,"message":"Creating index .kibana_task_manager_1."}
{"type":"log","@timestamp":"2022-07-17T12:29:51Z","tags":["info","migrations"],"pid":7,"message":"Creating index .kibana_1."}
{"type":"log","@timestamp":"2022-07-17T12:29:53Z","tags":["info","migrations"],"pid":7,"message":"Pointing alias .kibana to .kibana_1."}
{"type":"log","@timestamp":"2022-07-17T12:29:55Z","tags":["info","migrations"],"pid":7,"message":"Pointing alias .kibana_task_manager to .kibana_task_manager_1."}
{"type":"log","@timestamp":"2022-07-17T12:29:56Z","tags":["info","migrations"],"pid":7,"message":"Finished in 5264ms."}
{"type":"log","@timestamp":"2022-07-17T12:29:56Z","tags":["info","migrations"],"pid":7,"message":"Finished in 5131ms."}
{"type":"log","@timestamp":"2022-07-17T12:29:56Z","tags":["listening","info"],"pid":7,"message":"Server running at http://0:5601"}
{"type":"log","@timestamp":"2022-07-17T12:29:58Z","tags":["status","plugin:spaces@7.4.2","info"],"pid":7,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Request Timeout after 30000ms"}
{"type":"log","@timestamp":"2022-07-17T12:30:01Z","tags":["info","http","server","Kibana"],"pid":7,"message":"http server running at http://0:5601"}
[root@localhost ~]#