Skip to content

Simple shell script for tailing logs and posting to discord.

Notifications You must be signed in to change notification settings

sondrekje/bash-log-to-discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

TailDiscord (for simple monitoring of text files + notifications)

Usage

Replace the two variables inside the taildiscord bash script. You can receive a webhook URL by editing a channel on a discord server where you have administrative permissions.

Customization

This is a very simple bash script for server log monitoring, and you should edit it first if you intend to use it. Currently, it filters every log message that contains verbose and sends everything else. You should replace this with something useful, for instance, alerts if an error was logged.

Full uptime

There are various solutions if you would like the script to be running constantly. By far one of the most simplest ways, is probably editing the crontab. Example line (crontab -e):

# Log tail webhook post
@reboot cd ̃̃~/service/ && sh ./taildiscord

About

Simple shell script for tailing logs and posting to discord.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages