Setup log drain

Create the log drain service in Cloud Foundry.

cf cups logit-ssl-drain -l syslog-tls://your-logstash-host:your-port

Bind the service

Create the log drain service in Cloud Foundry.

cf bind-service YOUR-CF-APP-NAME logit-ssl-drain

Restage or push the service

cf restage YOUR-CF-APP-NAME

OR

cf push YOUR-CF-APP-NAME

For more information see the cloud foundry documentation: Log Streaming