开发者社区 > 大数据与机器学习 > 检索分析服务 Elasticsearch版 > 正文

阿里云Elasticsearch写入数据报错no such index and [action.au

已解决

阿里云Elasticsearch写入数据报错no such index and [action.auto_create_index] contains [-*] which forbids automatic creation of the index

展开
收起
阿里云服务支持 2022-12-12 16:18:39 831 0
1 条回答
写回答
取消 提交回答
  • 推荐回答
    官方回答

    阿里云ES默认关闭action.auto_create_index,该报错显示当前集群未开启自动创建索引,建议通过以下方式进行开启:

    1. 通过控制台集群配置开启自动创建索引,该操作为yml静态配置,会触发实例重启,详情参见配置YML参数

    2. 通过动态方式快速开启(不需要重启):

    PUT /_cluster/settings

    {

    "persistent": {
    
        "action": {
    
            "auto_create_index": "true"
    
        }
    
    }
    

    }

    提示:该方式将完全开放索引创建 如需禁止,将true改成false。

    1. 开启部分索引自动创建能力,如下所示仅对系统索引开启自动创建索引:

    PUT /_cluster/settings

    {

    "persistent": {    
    
        "action": { 
     
            "auto_create_index": "+.*,-*"    
    
        }  
    
    }
    

    }

    更多使用请参考自动创建索引

    2022-12-12 16:30:05
    赞同 展开评论 打赏

阿里云检索分析服务Elasticsearch版兼容开源ELK功能,免运维全托管,提升企业数据检索与运维分析能力。

相关产品

  • 检索分析服务 Elasticsearch版
  • 热门讨论

    热门文章

    相关电子书

    更多
    阿里云Elasticsearch体系架构与特性解析 立即下载
    开源与云:Elasticsearch应用剖析 立即下载
    《Elasticsearch全观测解决方案》 立即下载