Copy the analysis script from misc/log-analytics/import_logs.py and place it on the reverse proxy.
misc/log-analytics/import_logs.py
Now logged into the reverse proxy, place the script in /opt/madomo/imports_logs.py
/opt/madomo/imports_logs.py