This is server application for logging events from client applications. Logs can be serialized as json record to file or save to Amazon DynamoDB database.
Create table with index on Hash key: content Primary Range Key: session
Select 64 bits version. And remember to allow HTTP access. When server is ready connect to it using ssh. While connected to the server
Update package manager
sudo apt-get updateInstall git
sudo apt-get install gitInstall apache2
sudo apt-get install apache2
apt-get install libapache2-mod-wsgiCheck if apache is working correctly be visiting your server with web browser. You should get apache2 default page with message: It works!
Install Python pip tool
sudo apt-get install python-pipInstall Flask python library
sudo pip install flaskCreate config file for boto library with authorization keys in /etc/boto.cfg. Example:
[Credentials]
aws_access_key_id = <your access key>
aws_secret_access_key = <your secret key>Prepare iclogger application
git clone https://github.com/klangner/iclogger.git
cd iclogger/src/iclogger
cp example_settings.py settings.py
vim settings.pyUsing vim editor change TABLE_NAME to table you created on DynamoDB.
Configure apache to point to iclogger.wsgi
Now you you can try to open page: .amazonaws.com/?content=test&session=1&event=12
And check if there is a new row in dynamoDB table.