首页 > 解决方案 > Elastic-APM 索引名称无效 [_license]

问题描述

我们正在尝试安装 elastic-apm(目前在我们的开发系统上)。

根据 Homebrew,我们有最新的elasticsearch-oss(7.10.2)、kibana-oss(7.10.2) 和今天安装apm-server-oss的(版本为 7.13.0)。运行 apm-server 测试输出,我们得到:

% apm-server test output                
elasticsearch: http://localhost:9200...
  parse url... OK
  connection...
    parse host... OK
    dns lookup... OK
    addresses: ::1, 127.0.0.1
    dial up... OK
  TLS... WARN secure connection disabled
  talk to server... ERROR Connection marked as failed because the onConnect callback failed: could not connect to a compatible version of Elasticsearch: 400 Bad Request: {"error":{"root_cause":[{"type":"invalid_index_name_exception","reason":"Invalid index name [_license], must not start with '_'.","index_uuid":"_na_","index":"_license"}],"type":"invalid_index_name_exception","reason":"Invalid index name [_license], must not start with '_'.","index_uuid":"_na_","index":"_license"},"status":400}

因为关于让 APM 运行的文档有些迟钝,所以这可能是一个配置问题。但如何进一步调查?

是安装较早版本的apm-server的解决方案吗?如果是这样......如何用自制软件实际做到这一点?

标签: elasticsearchhomebrewelastic-apm

解决方案


我在使用非 oss 版本时遇到了同样的问题。通过将 ElasticSearch 和 Kibana 升级到 7.13.2 来解决这个问题。


推荐阅读