SSH-monitoring-with-slack

Simple ssh proxy connection monitoring app with slack

Build

You have to add .env file in directory with slack_token value before build docker.

(slack bot token starts with 'xoxb', ref: Creating Slack App)

# example of .env file
slack_token=xoxb-XXXXXXXX-XXXXXXX-XXXXXX

Build docker

docker build -t <image-name> .

Run

Run docker

docker run -v /var/log/auth.log:/var/log/auth.log -d <image-name>

If you want to change log file path (in docker),

  1. change -v /var/log/auth.log:<PATH-YOU-WANT>

  2. give -e LOG_PATH=<PATH-YOU-WANT> argument when you run docker image.

Default value of LOG_PATH is /var/log/auth.log

Try

example