A simple command line utility for receiving AWSCloudWatch NGINX log data and inserting it into a sqlite database for further analysis. Source data is ingested via STDIN stream directly from the awslogs
cli utility.
This utility was built using crystal lang. Install Crystal and run make
.
The -h
flag lists all options. Specifying the sqlite3 database flag (via -d
) as the FIRST option is required.
awslogs get /aws/elasticbeanstalk/web/var/log/nginx/access.log | ./cloudwatch2sqlite -d db/cloudwatch2sqlite
./cloudwatch2sqlite -d db/cloudwatch2sqlite --truncate
./cloudwatch2sqlite -d db/cloudwatch2sqlite --initialize
- Fork it (https://github.com/your-github-user/cloudwatch2sqlite/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Nick Maloney / The Gnar Co. - creator and maintainer
If you’re ready to dream it, we’re ready to build it. The Gnar is a custom software company ready to tackle your biggest challenges. Visit The Gnar Company website to learn more about us or contact us to see how we can help design and develop your product.