copy mongo2log.py to /opt/hpfeeds-logger/
cd /opt/hpfeeds-logger
source env/bin/activate
pip install pymongo==2.7.2
edit mongo2log.json
so contain the channels of the events you want to store and the log_file you want to store them in.
cd /opt/hpfeeds-logger
source env/bin/activate
python mongo2log.py mongo2log.json