The systemd service script is based on a idea from MBruchard on gistguthub.com.
Execute the following steps on the command line to install Snowflake proxy as a service on Debian.
I assume that you installed snowflake in ~/git/snowflake and downloaded this repository to ~/git/Snowflake-Proxy-Service.
cd ~/git/Snowflake-Proxy-Service
sudo addgroup --system snowflake
sudo adduser --system --ingroup snowflake snowflake
sudo mkdir /var/log/snowflake
sudo chown snowflake:snowflake /var/log/snowflake
sudo cp ~/git/snowflake/proxy/proxy /usr/local/bin/snowflake-proxy
sudo chmod +x /usr/local/bin/snowflake-proxy
sudo cp snowflake-proxy.service /etc/systemd/system/
sudo systemctl enable snowflake-proxy.service
sudo systemctl start snowflake-proxy.service
Change the paths to your needs and don't forget to change them in the file snowflake-proxy.service.
The script bash/snowflake-proxy-log extracts the connection reports form a log file and writes the reports into a CSV file. The fields are seperated by ';'. It can be imported into a MariaDB / MySQLDB with the SQL/import.sql.
The R-Script evauate-logs.r draws some diagrams for connections, download and upload.
tbc