Automating Metricbeats Installation

Hello,

Thanks for your metricbeat post. I've used the technique of echoing a value and piping it to the keystore command. The following post gives an example of doing this for Elasticsearch. The process should be similar for metricbeat or any of the other beats.

https://discuss.elastic.co/t/elasticsearch-6-3-elasticsearch-keystore-add-not-accepting-stdin/136577/4

echo "secret value" | ./elasticsearch-keystore add -x

Thanks.