Simple ssh proxy connection monitoring app with slack
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 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),
-
change
-v /var/log/auth.log:<PATH-YOU-WANT>
-
give
-e LOG_PATH=<PATH-YOU-WANT>
argument when you run docker image.
Default value of LOG_PATH
is /var/log/auth.log