修改logstash.conf文件中内容
output {
elasticsearch {
hosts => ["https://xxxxxx:9200"] # 这里一定要是https
user => "xxxx"
password=> "xxxx"
ssl => "true"
cacert => "xxxx/http_ca.cert" # 证书路径
index => "xxxxxx"
template => "xxxxxx/aaa.json" # 模板路径
template_overwrite => "true"
}
}