8000 GitHub - Juanelorganelo/river: A CLI to fetch and query JSON logs from AWS CloudWatch
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Juanelorganelo/river

Repository files navigation

river

=========

Warning ⚠️

This is a work-in-progress, use it at your own risk

A CLI to query CloudWatch Logs with additional features for JSON logs.

oclif Version Downloads/week License

Why?

I wanted a CLI that will allow me to write powerful queries for JSON logs and none of the existing ones seem to work that well with queries. Also, programming is fun.

Usage

$ npm install -g river
$ river COMMAND
running command...
$ river (-v|--version|version)
river/0.1.0 darwin-x64 node-v12.22.6
$ river --help [COMMAND]
USAGE
  $ river COMMAND
...

Commands

river help [COMMAND]

display help for river

USAGE
  $ river help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

river query LOGGROUPNAME

Query a batch of logs from CloudWatch

USAGE
  $ river query LOGGROUPNAME

ARGUMENTS
  LOGGROUPNAME  The name of the log group to query

OPTIONS
  --from=from                                Start of date range to get logs from
  --indent=indent                            Number of spaces used to indent output for JSON logs

  --logStreamNamePrefix=logStreamNamePrefix  A prefix used to filter logs. Only logs from a log stream matching the
                                             prefix will be returned

  --logStreamNames=logStreamNames            Names of log streams to get logs from

  --query=query                              A JSONPath query ran against the log events list. Queries are run on log
                                             pages, so if you do something like $[1].record it'll give you the first
                                             record on every log page, not the first record overall

  --timeZone=timeZone                        Optional time zone. Logs will be filtered using this time zone if to or
                                             from are provided in addition to dates being printed in the specified time
                                             zone

  --to=to                                    End of date range to get logs from

See code: src/commands/query.ts

river tail

USAGE
  $ river tail

See code: src/commands/tail.ts

About

A CLI to fetch and query JSON logs from AWS CloudWatch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0