SlackAuthNotifier

command module
v0.0.0-...-2ba9a9d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

README

Slack Auth Notifier





This repository has been transferred under kmc-jp.

kmc-jp/SlackAuthNotifier





About

This program monitors /var/log/auth.log to post a history of login attempts to Slack.

Install

go install github.com/TKMAX777/SlackAuthNotifier@latest

Usage

Specify the following environment variables

# Notification channel for successful login
SLACK_ACCEPTED_CHANNELS=C*******, C*******

# Notification channel for failed login attempts
SLACK_CAUTION_CHANNELS=C*******, C*******

# Other information channels
SLACK_OTHER_CHANNELS=C*******

# Specify whether to post root login attempt history to caution channels
ROOT_NOTIFY=no

SLACK_TOKEN=xoxb-*****
SLACK_ICON_EMOJI=:key:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL