当我启动logstash 时,我不断收到此错误[2019-02-26T16:50:41,329][FATAL][logstash.runner ] Logstash could not be started because there is already another instance using the configured data directory. If you wish to run multiple instances, you must change the "path.data" setting.
。我正在使用 cli 启动logstash。我执行的命令是:
screen -d -S logstash -m bash -c "cd;export JAVA_HOME=/nastools/jdk1.8.0_77/; export LS_JAVA_OPTS=-Djava.net.preferIPv4Stack=true; ~/monitoring/6.2.3/bin/logstash-6.2.3/bin/logstash -f ~/monitoring/6.2.3/config/logstash_forwarder/forwarder.conf"
我没有运行任何 Logstash 实例。我尝试运行这个:
ps xt | grep "logstash"它没有返回任何进程。我也尝试了以下方法:killall logstash但无济于事,它给了我同样的错误。我也尝试重新启动我的机器,但仍然出现同样的错误。
有人经历过类似的事情吗?Kibana 和 Elastic Search 启动得很好。
在此先感谢您的帮助!
在处理新版本的仪表板时,我需要保持以前的版本不变。所以我需要克隆现有的仪表板并将其保存为带有一些后缀的原始名称 - 例如 v.2。
我知道可以在 Kibana 中克隆仪表板,但它只能克隆仪表板。这意味着将有两个仪表板将共享相同的可视化。
是否也有一种自动方法来克隆可视化并使新的克隆仪表板使用这些克隆的可视化?
我想了解更多minimum_should_match中是如何工作的elasticsearch为AA查询搜索
GET /customers/_search
{
"query": {
"bool": {
"must":[
{
"query_string":{
"query": "???",
"default_field":"fullName",
"minimum_should_match": "70%" ------> experimented with this value
}
}
]
}
}
}
Run Code Online (Sandbox Code Playgroud)
我试验了查询中的百分比,我可以看到我得到了不同的中文结果?
我尝试阅读文档,但没有清楚地了解此选项是如何工作的?
我正在尝试将 JSON 文件 (263 MB) 添加到 elasticsearch。我已经使用 Kibana 为这个文件创建了一个映射,现在我正在尝试将它添加到弹性搜索中。我在 PowerShell 中运行此命令。
C:\Users\Khan> Invoke-RestMethod "http://localhost:9200/mysofindex/_bulk?pretty" -Method Post -ContentType 'application/x-ndjson' -InFile "output.json"
但这给了我一个错误。像这样:
Invoke-RestMethod : The remote server returned an error: (413) Request Entity Too Large.
At line:1 char:1
+ Invoke-RestMethod "http://localhost:9200/mysofindex/_bulk?pretty" -Me ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebE
xception
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Run Code Online (Sandbox Code Playgroud)
请告诉我如何解决这个问题?
启动 Kibana 7.5 时出现致命错误,我没有配置任何内容,我只是运行 elasticsearch.bat(也是 v7.5)和 kibana.bat
'{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"No handler for type [flattened] declared on field [state]"}],"type":"mapper_parsing_exception",
"reason":"Failed to parse mapping [_doc]: No handler for type [flattened] declared on field [state]",
"caused_by":{"type":"mapper_parsing_exception","reason":"No handler for type [flattened] declared on field [state]"}},"status":400}'
Run Code Online (Sandbox Code Playgroud)
我还可以启动 kibana 6.8.5,但无法连接到我的 elasticsearch 节点。
我创建了一个包含 3 个主节点和 5 个数据节点的集群。
该集群甚至有 25 个工作索引和 10 个仪表板。
现在我正在尝试为此集群启用身份验证。
我看到一些文章说弹性搜索从7.0版本开始有免费的安全服务 [链接](https://www.elastic.co/blog/security-for-elasticsearch-is-now-free)。
但是当我阅读教程时提到我们需要启用 xpack。xpack.security.enable: 真。
那么是不是我们需要 x-pack 来完成这个用例?
我已经使用此处建议的 .zip 文件夹在 Windows 10 上安装了 kibana
我已更新kibana.yml为存储日志,如下所示。

我也创建了日志文件夹。我也使用cmd重新启动了kibana。但日志文件中没有显示任何内容。
不知道我做错了什么。感谢潜在客户。
我是 elasticsearch 堆栈的新手...每当我尝试在 Kibana Dev Tool Console 中执行以下查询时,都会收到下面提到的错误
POST employees-details/_update_by_query
{
"query": {
"match": {
"EmpName": "Arvind"
}
},
"script": {
"source": "ctx._source.Address.add(params.tag)",
"lang": "painless",
"params": {
"tag":{
"AddressID":144,
"AddressNumber":458
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
\/执行上述查询时不断出现此错误^^
"caused_by" : {
"type" : "illegal_argument_exception",
"reason" : "dynamic method [java.util.HashMap, add/1] not found"
}
Run Code Online (Sandbox Code Playgroud)
[
{
"_index" : "employees-details",
"_type" : "_doc",
"_id" : "101",
"_score" : 1.0,
"_source" : {
"EmpUserID" : 101,
"Gender" : "Male",
"EmpName" : …Run Code Online (Sandbox Code Playgroud) 我有一个包含 NginX、ElasticSearch 和 Kibana 的 Docker Compose 设置,如下所示:
web:
build:
context: .
dockerfile: ./system/docker/development/web.Dockerfile
depends_on:
- app
volumes:
- './system/ssl:/etc/ssl/certs'
networks:
- mynet
ports:
- 80:80
- 443:443
elasticsearch_1:
image: docker.elastic.co/elasticsearch/elasticsearch:7.7.0
container_name: "${COMPOSE_PROJECT_NAME:-service}_elasticsearch_1"
environment:
- node.name=elasticsearch_1
- cluster.name=es-docker-cluster
- discovery.seed_hosts=elasticsearch_2,elasticsearch_3
- cluster.initial_master_nodes=elasticsearch_1,elasticsearch_2,elasticsearch_3
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es_volume_1:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- mynet
elasticsearch_2:
image: docker.elastic.co/elasticsearch/elasticsearch:7.7.0
container_name: "${COMPOSE_PROJECT_NAME:-service}_elasticsearch_2"
environment:
- node.name=elasticsearch_2
- cluster.name=es-docker-cluster
- discovery.seed_hosts=elasticsearch_1,elasticsearch_3
- cluster.initial_master_nodes=elasticsearch_1,elasticsearch_2,elasticsearch_3
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m …Run Code Online (Sandbox Code Playgroud) 我遵循了本指南https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-deploy-eck.html,然后应用此清单:
---
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: elasticsearch
spec:
version: 7.5.1
nodeSets:
- name: default
count: 3
config:
node.master: true
node.data: true
node.ingest: true
node.store.allow_mmap: false
---
apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
name: kibana
spec:
version: 7.5.1
count: 1
elasticsearchRef:
name: elasticsearch
---
apiVersion: apm.k8s.elastic.co/v1
kind: ApmServer
metadata:
name: apm-server
spec:
version: 7.5.1
count: 1
elasticsearchRef:
name: "elasticsearch"
config:
apm-server:
rum.enabled: true
ilm.enabled: true
rum.event_rate.limit: 300
rum.event_rate.lru_size: 1000
rum.allow_origins: ['']
rum.library_pattern: "node_modules|bower_components|~"
rum.exclude_from_grouping: "^/webpack"
rum.source_mapping.enabled: true
rum.source_mapping.cache.expiration: …Run Code Online (Sandbox Code Playgroud)