livepeer / cdn-log-puller

MIT License
0 stars 3 forks source link

cdn-log-analytics 📊

This tool is used for analyzing CDN logs. It downloads data, analyze it and insert results into an PosgreSQL database.

How to use it

Download

Usage of download:

Example:

./cdn-log-analytics download -bucket lp-cdn-logs-e9u3qf432 -folder download -verbose

Analyze

Usage of analyze:

Examples:

./cdn-log-analytics analyze -folder ./example-logs -output test.sql -format sql
./cdn-log-analytics analyze -folder ./example-logs -output test.csv -format csv

Insert

Usage of insert:

Examples:

./cdn-log-analytics insert -host localhost -port 5432 -user logs -password Passw0rd -db itpqedrl -filepath ./test.sql -verbose

docker build on Apple Silicon

docker buildx build --platform=linux/amd64 .