cloudfoundry/log-cache-cli

Name: log-cache-cli

Owner: Cloud Foundry

Description: null

Created: 2017-11-14 21:18:32.0

Updated: 2018-05-23 21:47:16.0

Pushed: 2018-05-23 21:47:15.0

Homepage: null

Size: 1346

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Log Cache CLI

GoDoc travis slack.cloudfoundry.org

The Log Cache CLI can be installed and used in two ways.

Cloud Foundry CLI plugin

The Log Cache CLI Plugin is a CF CLI plugin for the Log Cache system.

Plugin Demo

Installing Plugin
et code.cloudfoundry.org/log-cache-cli
nstall-plugin $GOPATH/bin/log-cache-cli
Usage
 tail --help
:
ail - Output logs for a source-id/app

E:
ail [options] <source-id/app>

RONMENT VARIABLES:
OG_CACHE_ADDR       Overrides the default location of log-cache.
OG_CACHE_SKIP_AUTH  Set to 'true' to disable CF authentication.

ONS:
-follow, -f          Output appended to stdout as logs are egressed.
-gauge-name          Gauge name filter (implies --envelope-type=gauge).
-json                Output envelopes in JSON format.
-lines, -n           Number of envelopes to return. Default is 10.
-start-time          Start of query range in UNIX nanoseconds.
-counter-name        Counter name filter (implies --envelope-type=counter).
-end-time            End of query range in UNIX nanoseconds.
-envelope-type       Envelope type filter. Available filters: 'log', 'counter', 'gauge', 'timer', and 'event'.

 log-meta --help
:
og-meta - Show all available meta information

E:
og-meta [options]

RONMENT VARIABLES:
OG_CACHE_ADDR       Overrides the default location of log-cache.
OG_CACHE_SKIP_AUTH  Set to 'true' to disable CF authentication.

ONS:
-guid              Display raw source GUIDs
-noise             Fetch and display the rate of envelopes per minute for the last minute. WARNING: This is slow...
-source-type       Source type of information to show. Available: 'all', 'application', and 'platform'.
Stand alone CLI
Installing CLI

Run our install script:

 -sS https://raw.githubusercontent.com/cloudfoundry/log-cache-cli/develop/scripts/install.sh | bash
Usage
  1. Target the Log Cache by setting the environment variable LOG_CACHE_ADDR.
  2. Simply run the log-cache command to view current metrics stored in Log Cache.
  3. Help can be accessed with the --help flag at any command level.
g-cache tail --help
ut logs and metrics for a given source-id

e:
g-cache tail <source-id> [flags]

s:
, --follow   Output appended to stdout as logs are egressed.
, --help     help for tail

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.