plugin for logstash, which pulls logs from a application deployed to Cloudhub.
Dockerfile
and docker-compose.yml
contains everything you need to try it out, assumed you already have docker-compose installed and a Docker instance running.
# gem can be used instead of jgem
jgem build logstash-input-cloudhub.gemspec
docker-compose build
export CLOUDHUB_DOMAIN=<application>
export CLOUDHUB_USERNAME=<username>
export CLOUDHUB_PASSWORD=<password>
docker-compose up
input {
cloudhub {
type => "CloudHub"
username => "anypoint-user"
password => "anypoint-password"
environments => "ints|prod"
sincedb_folder => "/temp/cloudhub_db"
sincedb_prefix => "since_"
interval => 30
proxy_host => "proxy-host"
proxy_port => 8080
proxy_username => "proxy-user"
proxy_password => "proxy-password"
}
}
output {
stdout {}
}