https://github.com/dacbd/poc-netbird-cron
extract netbird log events
https://github.com/dacbd/poc-netbird-cron
Last synced: about 1 year ago
JSON representation
extract netbird log events
- Host: GitHub
- URL: https://github.com/dacbd/poc-netbird-cron
- Owner: dacbd
- License: mit
- Created: 2024-12-16T01:00:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-16T01:11:45.000Z (over 1 year ago)
- Last Synced: 2025-02-13T08:18:19.964Z (over 1 year ago)
- Language: Rust
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# poc-netbird-cron
extract netbird log events
[Netbird events api](https://docs.netbird.io/api/resources/events)
[Service Users/tokens](https://app.netbird.io/team/service-users)
- queries the netbird api for events (gets the last 10k)
- ensures events are sorted by date
- checks s3 log bucket for events that have been saved already
- merges new and old events
- saves events to log bucket
## Usage
```bash
export NETBIRD_API_TOKEN="some bot users token"
# + AWS credentials
cargo run
```