Docker中的ElasticSearch

cpjpxq1n  于 4个月前  发布在  ElasticSearch
关注(0)|答案(1)|浏览(156)

我在Docker中为开发环境运行一个elasticsearch示例,我得到了这个错误,我不知道如何修复:
“type”:“server”,“timestamp”:“2023-11-21T10:51:38,428Z”,“level”:“ERROR”,“component”:“o.e.x.d.l.DeprecationIndexingComponent”,“cluster.name“:“docker-cluster”,“node.name“:”“ff696add001b”,“message”:“Bulk write of 1 deprecation logs failed:autoGeneratedTimestamp should not be set externally”,“cluster.uuid”:“73p5mXnQSJGqg_BMN22XQw”,“node.id“:“X40M5KsQRrGOAxlEAvk2Rg”
elasticsearch在Docker文件中指定如下:

elasticsearch:
    platform: linux/x86_64
    image: docker.elastic.co/elasticsearch/elasticsearch:7.17.6
    ports:
      - 9200:9200
    environment:
      - discovery.type=single-node
    healthcheck:
      test: "exit 0"

字符串
有人能告诉我如何解决这个问题吗?

rqenqsqc

rqenqsqc1#

该消息的关键部分是autoGeneratedTimestamp should not be set externally。这表明弃用日志的时间戳处理方式存在问题。
如果您有任何自定义代码或集成与Elasticsearch一起运行,特别是任何写入弃用日志或修改日志记录行为的代码,请检查它以确保它没有设置autoGeneratedTimestamp
此外,请确保您的Elasticsearch配置中不包含任何可能错误设置日志时间戳的设置。有时自定义配置或插件可能会干扰默认日志记录机制。
您也可以在Elasticsearch中检查日志记录配置。日志的格式或设置可能会导致时间戳的生成或解释出现问题。

相关问题