Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/segment-boneyard/go-loggly-cli
- Owner: segment-boneyard
- Created: 2014-06-01T22:04:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-02T20:31:18.000Z (over 10 years ago)
- Last Synced: 2024-04-09T16:31:04.498Z (7 months ago)
- Language: Go
- Size: 145 KB
- Stars: 7
- Watchers: 39
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: Readme.md
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