https://github.com/petergrace/eb-event-logger
Emit ElasticBeanstalk event logs to an https log receiver
https://github.com/petergrace/eb-event-logger
aws aws-beanstalk observability rust
Last synced: 2 months ago
JSON representation
Emit ElasticBeanstalk event logs to an https log receiver
- Host: GitHub
- URL: https://github.com/petergrace/eb-event-logger
- Owner: PeterGrace
- License: mit
- Created: 2025-01-09T21:27:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-09T21:40:08.000Z (over 1 year ago)
- Last Synced: 2025-01-28T22:38:49.726Z (over 1 year ago)
- Topics: aws, aws-beanstalk, observability, rust
- Language: Rust
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# What it does
This simple program runs a loop that, every 30 seconds, queries AWS elastic beanstalk to enumerate all beanstalk environments in your logged-in account and then gathers all of the events that were emitted since the last loop processing period and shoves them to a configurable http endpoint.
# Requirements
app must be run in a shell that is logged into AWS, or, in a kubernetes POD that has EKS IAM Roles for Service Accounts (IRSA) enabled.
The following envvars are read for configuration:
| var | what |
| --- | ---- |
| AWS_* | Whichever AWS auth envvars your deployment uses |
| EB_EVENT_LOGGER_URL | The URL for your http receiver. |
| EB_EVENT_LOGGER_USER | The basic auth username for authentication to HTTP receiver. |
| EB_EVENT_LOGGER_PASSWORD | The password for the basic auth authentication to HTTP receiver. |
# Output format
The app emits the EventDescription essentially unchanged, except for the addition of a "type" field which I use to help route log entries in [vector](https://vector.dev/).