Hi, I have the following logstash configuration, and when I run it it gives me the error.
the input server is hosted on elastic cloud v7.9 and the output server is hosted on AWS elasticsearch v7.8, any clue how to solve this error?
[2020-11-21T15:07:45,444][ERROR][logstash.outputs.elasticsearch][main] Failed to install template.
{:message=>"Got response code '401' contacting Elasticsearch at URL
'https://xxx.eu-west-1.es.amazonaws.com:443/_xpack'"
this is the logstash config file
input {
elasticsearch {
hosts => ["https://yyy.eu-west-1.aws.found.io:443"]
user => "xxx"
password => "xxx"
index => "idx-1,idx-2"
size => 10
scroll => "10m"
codec => "json"
docinfo => true
}
}
filter {
mutate { remove_field => [ "@version", "@timestamp" ] }
}
output {
elasticsearch {
document_id => "%{[@metadata][_id]}"
hosts => ["https://xxx.es.amazonaws.com:443"]
user => "xxx"
password => "xxx"
index => "%{[@metadata][_index]}"
}
}