项目:Jhipster-文档管理
Docker配置:MySQL,Elasticsearch,Kibana
问题:Elasticsearch索引在项目中有效,但其数据未在kibana中显示
问题:我想使用querystring在kibana中打开数据。
代码:
Elasticsearch.yml
version: '2.2'
services:
docy-elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.8.6
container_name: docy-elasticsearch
volumes:
- ~/volumes/jhipster/docy/elasticsearch/:/usr/share/elasticsearch/data/
ports:
- 9200:9200
- 9300:9300
restart: always
environment:
- SPRING_DATA_JEST_URI=http://docy-elasticsearch:9200/
- xpack.security.enabled=false
- xpack.monitoring.enabled=true
- xpack.ml.enabled=true
- xpack.graph.enabled=true
- xpack.watcher.enabled=true
- cluster.name=docker-cluster
- bootstrap.memory_lock=false
- ES_JAVA_OPTS=-Xms1024m -Xmx1024m
- discovery.zen.minimum_master_nodes=1
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
networks:
elk:
aliases:
- docy-elasticsearch
networks:
elk:
Kibana.yml
version: '2'
services:
docy-kibana:
image: docker.elastic.co/kibana/kibana:6.8.6
container_name: docy-kibana
ports:
- 5601:5601
restart: always
environment:
- ELASTICSEARCH_URL=http://docy-elasticsearch:9200/
- xpack.monitoring.collection.enabled=true
networks:
- elk
networks:
elk:
最佳答案
我在 flex 搜索yml中设置卷
- ../../../../doc/ELK_Data/data/:/usr/share/elasticsearch/data/
通过它,它在项目启动时创建索引并显示索引。
当我将以下参数设置为true时,它将显示我的索引,但之前存储的数据将存储在我的实际索引(文档)中,但在某些.monitoring-es-中进行此数据存储之后。我对行为感到困惑。有人可以指导我吗?我想将其存储在文档中并通过kibana执行操作。
- xpack.monitoring.enabled=true
- xpack.monitoring.collection.enabled=true