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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
The Log Cache CLI can be installed and used in two ways.
The Log Cache CLI Plugin is a CF CLI plugin for the Log Cache system.
et code.cloudfoundry.org/log-cache-cli
nstall-plugin $GOPATH/bin/log-cache-cli
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'.
Run our install script:
-sS https://raw.githubusercontent.com/cloudfoundry/log-cache-cli/develop/scripts/install.sh | bash
LOG_CACHE_ADDR
.log-cache
command to view current metrics stored in Log
Cache.--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