Skip to content

anklei/logsearch-for-cloudfoundry

 
 

Repository files navigation

Logsearch for Cloud Foundry

LogStash parsing rules for some CloudFoundry-specific log formats:

  • App logs
  • Container metrics
  • UAA logs

Deploying

This documentation assumes that you have a working LogSearch deployment and that bosh_cli is pointed at the right director.

1. Fetch your running LogSearch BOSH deployment manifest

$ bosh download manifest $logsearch_deployment_name > ~/workspace/logsearch.yml

3. Upload LogSearch-for-CloudFoundry release to your BOSH director

$ bosh create release
$ bosh upload release

2. Extend the LogSearch deployment manifest with LogSearch-for-CloudFoundry

At this point there is a choice to make. If Kibana is publicly exposed in your deployment and you wish to protect it with authentication, you have 2 options.

Basic auth

You can configure the haproxy job in logsearch-boshrelease to act as an authentication proxy in front of Kibana. Configuration for the haproxy job looks like this:

properties:
  haproxy:
    kibana:
      auth:
        user: user
        password: password

then:

$ vim templates/logsearch-for-cf.example.yml
$ scripts/generate_deployment_manifest ~/workspace/logsearch.yml templates/logsearch-for-cf.example.yml > ~/workspace/logsearch-with-logsearch-for-cf.yml

UAA OAuth

WARNING There are currently a set of known issues with the Kibana UAA auth. See #94 for details

Alternatively, you can use the kibana plugin provided by this release to get kibana to ask the user for credentials and perform an OAuth handshake with the CloudFoundry UAA server before serving requests.

$ vim templates/logsearch-for-cf.example-with-uaa-auth.yml
$ scripts/generate_deployment_manifest ~/workspace/logsearch.yml templates/t/logsearch-for-cf.example-with-uaa-auth.yml > ~/workspace/logsearch-with-logsearch-for-cf.yml

3. Update the logsearch deployment with the new manifest

$ bosh deployment ~/workspace/logsearch-with-logsearch-for-cf.yml
$ bosh deploy

If UAA authentication is enabled

$ bosh run errand create-uaa-client

About

A Logsearch addon that customises Logsearch to work with Cloud Foundry data

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • HTML 70.3%
  • Ruby 14.5%
  • Shell 8.2%
  • Java 4.5%
  • JavaScript 2.5%