Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
<img src="//i.stack.imgur.com/RUiNP.png" height="16" width="18" alt="" class="sponsor tag img">elasticsearch 在ElasticSearch群集之间移动索引_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch_Logstash - Fatal编程技术网 elasticsearch 在ElasticSearch群集之间移动索引,elasticsearch,logstash,elasticsearch,Logstash" /> elasticsearch 在ElasticSearch群集之间移动索引,elasticsearch,logstash,elasticsearch,Logstash" />

elasticsearch 在ElasticSearch群集之间移动索引

elasticsearch 在ElasticSearch群集之间移动索引,elasticsearch,logstash,elasticsearch,Logstash,我已经在本地安装了logstash,并试图在elasticsearch集群之间复制索引 我在端口9210上配置了一个本地elasticsearch,在IBMBlueMix中托管了一个远程ES集群。我已经设置了logstash.conf,如下所示: input { elasticsearch { hosts => [ "localhost:9210" ] index => "lon02-daily-2017.08.30" size => 500

我已经在本地安装了logstash,并试图在elasticsearch集群之间复制索引

我在端口9210上配置了一个本地elasticsearch,在IBMBlueMix中托管了一个远程ES集群。我已经设置了logstash.conf,如下所示:

input {
  elasticsearch {
    hosts => [ "localhost:9210" ]
    index => "lon02-daily-2017.08.30"
    size => 500
    scroll => "5m"
    docinfo => true
  }
}

output {
  # We write to the "new" cluster
  elasticsearch {
    hosts => ["https://xxxxxxx:19459/"]
    user => "xxxxxx"
    password => "xxxxxxx"
    index => "%{[@metadata][_index]}"
    document_type => "%{[@metadata][_type]}"
    document_id => "%{[@metadata][_id]}"
  }
  # We print dots to see it in action
  stdout {
    codec => "dots"
  }
}
但是,当我运行./logstash-f logstash.conf时,我得到以下错误(发布在下面),这表明logstash无法连接到远程集群,但是我可以通过curl与它联系,如下所示: 旋度-u xxxxxx:xxxxxxx


我认为这意味着logstash没有使用logstash.conf中的凭据。有人能发现我做错了什么吗?

ES和logstash版本?
Attempted to send a bulk request to Elasticsearch configured at
["https://xxxx:19459/"]', but an error occurred and it failed! 
Are you sure you can reach elasticsearch from this machine using the configuration provided?