无论才能、知识多么卓著,如果缺乏热情,则无异纸上画饼充饥,无补于事。

elasticsearh 过期数据存储至s3

Elasticsearch | 作者 chachabusi | 发布于2019年04月01日 | 阅读数:1944

各位大神 我司打算将过期的日志数据存进s3里  s3是别的公司提供的 当我测试这个s3的时候 返回了一个无法连接的错误
这是我的命令 
58 >#  curl -XPUT "localhost:9200/_snapshot/_all" -H 'Content-Type: application/json' -d'
{
"type": "s3",
"settings": {
"bucket":"log",
"region":"us-west",
"endpoint":"log.ec.xxxxxxx.com",
"access_key":"xxxxxx",
"secret_key":"xxxxxxxxxxxxx",
"protocol":"https"
}
}'
 
返回了这个错误 
 
{"error":{"root_cause":[{"type":"sdk_client_exception","reason":"sdk_client_exception: Unable to execute HTTP request: Connect to log.s3.amazonaws.com:443 [log.s3.amazonaws.com/52.218.96.193] failed: connect timed out"}],"type":"repository_exception","reason":"[_all] failed to create repository","caused_by":{"type":"sdk_client_exception","reason":"sdk_client_exception: Unable to execute HTTP request: Connect to log.s3.amazonaws.com:443 [log.s3.amazonaws.com/52.218.96.193] failed: connect timed out","caused_by":{"type":"i_o_exception","reason":"Connect to log.s3.amazonaws.com:443 [log.s3.amazonaws.com/52.218.96.193] failed: connect timed out","caused_by":{"type":"i_o_exception","reason":"connect timed out"}}}},"status":500
 
 
看起来似乎他没有使用我的地址 而是使用了默认的AWS地址 各位大神能帮帮小妹我吗 ,这个地址是在哪里改动的?
 
已邀请:

bellengao - 博客: https://www.jianshu.com/u/e0088e3e2127

赞同来自:

不设置region试试

xufenxu

赞同来自:

这个应该是快照配置的S3的endpoint没有生效,S3的快照插件有没有什么问题,或者调用的接口对不对,确认一下。

zqc0512 - andy zhou

赞同来自:

你是打算备份还迁移,好像是支持直接备份到S3的呢。report snapost.
 

要回复问题请先登录注册