Open ahahtyler opened 8 years ago
Figured I’d put together a short guide on how to set up Cloud Foundry, push and application, and forward logs to logsatsh.
Download the CF CLI
Get access to Cloud Foundry
Push your first application
git clone https://github.com/cloudfoundry-samples/cf-php-demo
cf login -a api.run.pivotal.io -u username -p password
cf push --random-route -b php_buildpack
Forward application logs to logstash
cf cups logstash-drain -l syslog://IP:PORT
cf bs cf-php-demo logstash-drain
cf restage cf-php-demo
Set up your logstash config
cf_api => "https://api.run.pivotal.io"
cf_user => "username"
cf_password => "password"
cf_org => "your org"
cf_space => "your space"
Doubling back on this, just want to make sure there isn't any thing else I forgot to do to get this plugin reviewed.
@ahahtyler I created https://github.com/logstash-plugins/logstash-filter-cloudfoundry. Can you do an initial PR?
@suyograo Done and done. Thanks!
I definitely dropped the ball on this one. I've submitted the initial pull request and realized I didn't put any reviewers on it: https://github.com/logstash-plugins/logstash-filter-cloudfoundry/pull/1
I'm not sure if anything else needs to be done. I see the subsequent Next round of new Logstash plugins has been quite for quite some time.
Hello everyone,
I've been working on a logstash filter that interfaces with the PaaS platform Cloud Foundry and I would like to have it published in the logstash plugin repo.
Application logs generated in this environment contain a non-static GUID that relates back to an application. This makes it very difficult to determine a logs source when multiple applications are funneling to the same logging endpoint. This filter aims to solve this issue by using the GUID in each log to determine which application it came from.
I've put together a suite of rspec tests and a README at the github link below to better detail out the filter fields and features. As per the logstash filter creation guide the first step was to create an issue here. Any feed back, suggestions, or criticisms are welcomed.
You can find the filter here: https://github.com/ahahtyler/logstash-filter-cloudfoundry