Skip to content

yevmel/logstash-input-cloudhub

Repository files navigation

logstash-input-cloudhub

plugin for logstash, which pulls logs from a application deployed to Cloudhub.

try it out

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.

build the plugin from source.

# gem can be used instead of jgem
jgem build logstash-input-cloudhub.gemspec

setup a container with logstash 2.4 and install the plugin

docker-compose build

run the container with logstash and the plugin.

export CLOUDHUB_DOMAIN=<application>
export CLOUDHUB_USERNAME=<username>
export CLOUDHUB_PASSWORD=<password> 
docker-compose up

configuration

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 {} 
}

further information

Cloudhub Enhanced Logging API 1.0.0

About

logstash plugin for Cloudhub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages