allomov
11/20/2014 - 3:45 PM

bind-elk-to-cf.sh

# deploy CF
JUJU_REPOSITORY=$HOME/path/to/repo ./cfdeploy admin

# deploy ELK
juju deploy cs:trusty/kibana
juju deploy cs:trusty/elasticsearch
juju deploy cs:~lazypower/trusty/logstash-agent
juju deploy cs:~lazypower/trusty/logstash logstash-indexer

juju add-relation kibana:rest elasticsearch:client
juju add-relation logstash-indexer:client elasticsearch:client
juju add-relation logstash-agent:input logstash-indexer:input

juju expose kibana
juju expose elasticsearch

juju add-relation logstash-agent cc
juju set logstash-agent CustomLogFile="['/var/vcap/sys/log/**/*.log']" CustomLogType="syslog"