Giter Site home page Giter Site logo

cf-plugin-kibana-me-logs's Introduction

Overview

Launches the Kibana UI (from kibana-me-logs) for an application.

demo

Learn more about using CLI plugins from https://blog.starkandwayne.com/2015/03/04/installing-cloud-foundry-cli-plugins/

Installation

From community plugin repo:

$ cf add-plugin-repo community https://plugins.cfapps.io/
$ cf install-plugin kibana-me-logs -r community

From source, see the Development section below.

Upgrade

To upgrade you must first uninstall the plugin and then install as above:

$ cf uninstall-plugin kibana-me-logs

Usage

$ cf kibana-me-logs <app> [--no-auth]

Will launch the Kibana UI and show logs for the requested app.

It assumes that <app> is the an app bound to the same logstash14 logstash service.

cf kibana-me-logs will automatically generate a user/password for you to use in conjunction with your kibana-me-logs app, unless you provide the --no-auth option.

Advanced Usage

To use a custom kibana-me-logs repo, specify the repo URL in the KIBANA_ME_LOGS_REPO environment variable.

To bypass cloning kibana-me-logs, and use a local source directory, specify the path in the KIBANA_ME_LOGS_APP_DIR environment variable.

To use a custom temp directory (overriding /tmp), for holding the kibana-me-logs repo being pushed, use the TMP_DIR environment variable.

Development

To build from source, first fetch the Cloud Foundry CLI project and generate its internal go files:

go get github.com/cloudfoundry/cli/cf
cd $GOPATH/src/github.com/cloudfoundry/cli
./bin/build

Next fetch this project:

$ go get github.com/cloudfoundry-community/cf-plugin-kibana-me-logs
$ cf install-plugin $GOPATH/bin/cf-plugin-kibana-me-logs

There is a helper to uninstall, build, install, and run the plugin:

./bin/run.sh <ARGS>

Or manually:

cf uninstall-plugin kibana-me-logs
go get ./...
cf install-plugin $GOPATH/bin/cf-plugin-kibana-me-logs
cf kibana-me-logs <ARGS>

Or a one-liner:

cf uninstall-plugin kibana-me-logs; go get ./...; cf install-plugin $GOPATH/bin/cf-plugin-kibana-me-logs && cf kibana-me-logs <ARGS>

Bump version & release

There is a helper script to bump the version number VERSION file and regenerate the gobindata version.go file:

export VERSION=X.Y.Z
./bin/bump_version.sh $VERSION
git commit -a -m "bump v$VERSION"
git push
./bin/build.sh
./bin/release.sh
./bin/plugin_index.sh

Put the output from plugin_index.sh into the cloudfoundry-incubator/cli-plugin-repo repository and submit a pull request to update http://plugins.cloudfoundry.org

cf-plugin-kibana-me-logs's People

Contributors

drnic avatar lnguyen avatar jhunt avatar geofffranks avatar

Stargazers

 avatar Jeff M avatar Sandro Wyss avatar 言川 avatar  avatar Lukas Lehmann avatar Etourneau Gwenn avatar

Watchers

Tyler Poland avatar  avatar Shawn Neal avatar John Longanecker avatar James Cloos avatar Bertrand Lupart avatar Quintessence avatar Benjamin Gandon avatar Xiujiao Gao avatar DigitalEagle avatar Aaron Gershman avatar  avatar  avatar

Forkers

morika-t

cf-plugin-kibana-me-logs's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.