📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 7.1-8.9

简而言之,当尝试在Elasticsearch中将系统索引作为可搜索快照挂载时,会出现此错误。系统索引仅供内部使用,不应直接访问。要解决此问题,请避免将系统索引作为可搜索快照挂载。相反,应专注于用户创建的索引。此外,确保遵循创建可搜索快照的正确程序。定期监控系统索引,以防止未经授权的访问或修改。

日志上下文 #

日志 “system index [{}] cannot be mounted as searchable snapshots” 的类名是 TransportMountSearchableSnapshotAction.java. 我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入了解上下文的人使用:

) {
 SearchableSnapshots.ensureValidLicense(licenseState);  final String mountedIndexName = request.mountedIndexName();
 if (systemIndices.isSystemIndex(mountedIndexName)) {
 throw new ElasticsearchException("system index [{}] cannot be mounted as searchable snapshots"; mountedIndexName);
 }  final String repoName = request.repositoryName();
 final String snapName = request.snapshotName();
 final String indexName = request.snapshotIndexName();