https://github.com/dbgeek/elblogcat
elb/alb access log cli. List and show content of accesslog.
https://github.com/dbgeek/elblogcat
aws aws-alb aws-elb cat cli logs
Last synced: 6 months ago
JSON representation
elb/alb access log cli. List and show content of accesslog.
- Host: GitHub
- URL: https://github.com/dbgeek/elblogcat
- Owner: dbgeek
- License: mit
- Created: 2019-02-22T20:26:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T02:33:57.000Z (over 3 years ago)
- Last Synced: 2024-06-20T11:15:04.625Z (about 2 years ago)
- Topics: aws, aws-alb, aws-elb, cat, cli, logs
- Language: Go
- Size: 55.7 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ELBLOGCAT
[](https://goreportcard.com/report/github.com/dbgeek/elblogcat)
`elblogcat` is tool to list accesslogs for aws loadbalancers and cat them to see the content of them without need to download them local and cat them manual.
This cli program is inspired by [wolviecb](https://github.com/wolviecb) that made bash script that analyses elb/access logs.
## Installation
### Manual installation - compile it
- [Install go](https://golang.org/doc/install)
- Set up `GOPATH` and add `$GOPATH/bin` to your `PATH`
- Run `go get -u github.com/dbgeek/elblogcat`
### Download github release
```sh
curl https://github.com/dbgeek/elblogcat/releases/download//elblogcat___.tar.gz --out elblogcat_0.0.1-rc2_darwin_amd64.tar.gz
```
## Usage
### list all accesslog with prefix
```sh
elblogcat list --aws-account-id 1234567890 --s3-prefix-bucket lb-bucket --s3-prefix team-xxx
```
### list all accesslog with without prefix
```sh
elblogcat list --aws-account-id 1234567890 --s3-prefix-bucket lb-bucket
```
### cat accesslog for one load-balancer between a timerange
```sh
elblogcat cat --load-balancer-id load-balancer-id --start-time "2019-03-03 11:00:00" --end-time "2019-03-03 12:00:00"
```