Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/segment-boneyard/go-loggly-cli

Loggly search CLI written in Go
https://github.com/segment-boneyard/go-loggly-cli

Last synced: about 5 hours ago
JSON representation

Loggly search CLI written in Go

Awesome Lists containing this project

README

        

# Loggly CLI

Loggly search command-line tool.

## Installation

Quick install via go-get:

```
$ go get github.com/segmentio/go-loggly-cli
$ go-loggly-cli --version
```

## Usage

```

Usage: loggly [options] [query...]

Options:

--account account name
--user account username
--pass account password
--size response event count [100]
--from

```

## Setup

Loggly's search API requires basic auth credentials, so you _must_ pass
the `--acount`, `--user`, and `--pass` flags. To make this less annoying
I suggest creating an alias:

```sh
alias logs='loggly --account segment --user tj --pass something'
```

This is a great place to stick personal defaults as well. Since flags are clobbered
if defined multiple times you can define whatever defaults you'd like here, while
still changing them via `log`:

```sh
alias logs='loggly --account segment --user tj --pass something --size 5'
```

## License

MIT