I have my kubernetes cluster running o bare metal and am collecting logs using filebeat. Am already sending my fileabeat logs to elasticsearch (which is running locally ). Now i also want to send my filebeat logs to elasticsearch cloud (AWS ). So how to do the configuration to push logs to elasticseach (AWS)?
I have tried below configuration but not successful , can anyone suggest me right steps.
output.elasticsearch:
hosts: ["http://myawsip:9200"]