Byggvir / Snowflake-Proxy-Service

Install snowflake proxy as a service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snowflake-Proxy-Service

How to install snowflake proxy as a systemd service

The systemd service script is based on a idea from MBruchard on gistguthub.com.

Installation

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.

Evaluate snowfalke proxy log

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.

R

The R-Script evauate-logs.r draws some diagrams for connections, download and upload.

tbc

About

Install snowflake proxy as a service

License:GNU General Public License v3.0


Languages

Language:R 75.0%Language:Shell 16.3%Language:Awk 5.8%Language:sed 2.9%