Skip to content

A BOSH release for Logstash listening to CloudFoundry syslog, writting to ElasticSearch, and Kibana frontend.

Notifications You must be signed in to change notification settings

arkadijs/logstash-es-kibana-boshrelease

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logstash with CloudFoundry

This is a BOSH release you could upload to director and deploy to get a working combo of Logstash that parses CloudFoundry syslog, writes it to ElasticSearch, together with Kibana web UI on port 80.

Example deployment manifests are in _manifests/.

CloudFoundry

First, configure CloudFoundry via it's deployment manifest to forward all logs:

properties:
  syslog_aggregator:
    address: LOGSTASH_VM_IP
    port: 5000
    all: false
    transport: tcp

Also, configure user-provided-service to forward application logs:

cf cups logstash -l syslog://LOGSTASH_VM_IP:5000
cf bind-service APP_NAME logstash
cd APP_DIR && cf push

Development

For details of BOSH release development refer to:

  1. BOSH documentation hub
  2. Creating a BOSH Release
  3. Understanding the BOSH Deployment Manifest properties
  4. Blobs storage providers

Note, that S3 blob bucket must be hosted in us-east-1 and it must have a permissive Get policy applied, like the following:

{
    "Version": "2008-10-17",
    "Id": "Policy1406027947715",
    "Statement": [
        {
            "Sid": "Stmt1406027941762",
            "Effect": "Allow",
            "Principal": "*",
            "Action": [
                "s3:List*",
                "s3:Get*"
            ],
            "Resource": "arn:aws:s3:::logstash-es-kibana-boshrelease-us-east-1/*"
        }
    ]
}

About

A BOSH release for Logstash listening to CloudFoundry syslog, writting to ElasticSearch, and Kibana frontend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published