tsgkdt
(tsgkdt)
October 31, 2019, 1:29pm
2
outputのelasticsearcにhosts、ユーザ名、パスワードを指定しておくのが良いと思います。
output {
elasticsearch {
hosts => ["https://123456789asdfhujiko.eastus2.azure.elastic-cloud.com:9243"]
user => "elastic"
password => "tadashiipassword"
}
}
Will this "data-out.conf" find the cloud ES instance by checking against main "logstash.conf"?
I assume you mean .yml, not .conf ? (if so...)
The Elasticsearch settings in logstash.yml are only applicable to monitoring, management, and modules. You still have to define your hosts (and credentials if needed) in the output { section of your configuration [1].
If have 1 instance/cluster of Elasticsearch , it does become a bit redundant to redefine the same connection everywhere. Also note, the…
こちらのElasticメンバーの回答をみると、cloud.idやauthは、モニタリングやモジュール用であって、outputには直接hostを書いてね、と書いてあるように見えるからです。
you will need to use the host name(s) directly.
ご参考になれば幸いです。
1 Like