Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/1ntegrale9/s3-log-observer
Analyzer of AWS S3 logs by Django
https://github.com/1ntegrale9/s3-log-observer
Last synced: 4 days ago
JSON representation
Analyzer of AWS S3 logs by Django
- Host: GitHub
- URL: https://github.com/1ntegrale9/s3-log-observer
- Owner: 1ntegrale9
- License: mit
- Created: 2017-11-01T12:38:28.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-09-22T17:58:16.000Z (over 3 years ago)
- Last Synced: 2024-11-01T06:34:23.472Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 115 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
AWS S3 Logs Analyzer by Django
# How to Use
```
brew install postgresql
postgres -D /usr/local/var/postgres
psql postgres
CREATE DATABASE s3log;
CREATE USER admin WITH PASSWORD 'admin';
ALTER ROLE admin SET client_encoding TO 'utf8';
ALTER ROLE admin SET default_transaction_isolation TO 'read committed';
ALTER ROLE admin SET timezone TO 'Asia/Tokyo';
GRANT ALL PRIVILEGES ON DATABASE s3log TO admin;
\q
psql -U admin -d s3logpip3 install pipenv
pipenv install
mkdir log/
aws configure
awa s3 cp s3:// ./log/ --region= --exclude "*" --include "2018-07-19*" --recursive
pipenv run python manage.py migrate
pipenv run python manage.py runserverACCESS => http://127.0.0.1:8000/run
pipenv run python manage.py createsuperuser
ACCESS => http://127.0.0.1:8000/admin
```