Categorygithub.com/kmc-jp/SlackAuthNotifier
modulepackage
1.0.2
Repository: https://github.com/kmc-jp/slackauthnotifier.git
Documentation: pkg.go.dev

# README

Slack Auth Notifier

About

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

Install

go install github.com/kmc-jp/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:

Options

Customize Login Messages

You can change the user name displayed by creating the following file

In addition, you can add mentions to messages.

# ~/.slack_notifier
CustomName=*****
SlackID=U******

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author