Add reaction to log management tools #646
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thank you for taking the time to work on a PR for Awesome-Sysadmin!
To ensure your PR is dealt with swiftly please check the following:
Demo
andClients
are optional.Do not add a duplicate
Source code
link if it is the same as the main link.Keep the short description under 80 characters and use sentence case
for it, even if the project's webpage or readme uses another capitalisation.
Demo
links should only be used for interactive demos, i.e. not video demonstrations.- [Name](http://homepage/) - Short description, under 250 characters, sentence case. ([Demo](http://url.to/demo), [Source Code](http://url.of/source/code), [Clients](https://url.to/list/of/related/clients-or-apps)) `License` `Language`
Language
tag is the main server-side requirement for the software. Don't include frameworks or specific dialects.Suggested titles: "Add aaa to bbb" for adding software aaa to section bbb,
"Remove aaa from bbb" for removing, "Fix license for aaa", etc.
Please take some time to answer the following questions as best you can:
It can replace most
fail2ban
setups with almost no configuration while being lightweight and efficient. It has additional defaults for matching IPs: management of v4 and v6, CIDR etc. But besides, it is very general-purpose and at the end is so flexible in its core concepts that users can be very creative. Whatreaction
does could in theory be done with ad-hoc scripts, but it has simple yet powerful features: regexps, occurrences counting before action, delayed actions, persistence/replay, and can be configured using Jsonnet, saving a lot of duplication.I use it on every server I manage for almost a year, as a basic SSH ban tool, but also as a poor's man log alerting solution. And it's great: I really don't need Loki or other heavy log storage and analysis tools. I just need to watch for docker or systemd logs for specific patterns and maybe send alerts.
Professional setups. Right now it is especially popular among French NGOs hosting FLOSS services.
Counting VMs and hypervisors, probably a few dozens. Some VMs have services with thousands of users, but not sure it is relevant there.
Pros are definitely being lightweight, simple to start with, written in Rust, complete liberty about commands, good journaling, and choice between YAML and Jsonnet.
Main con, imo, is lacking of specialized, native actions that would make way some stuff easier/more secure/more efficient, such as executing SQL queries, reporting to AbuseIP, sending message to
apprise
, etc (but a plugin system is being developed).For now,
reaction
's behavior when using multiple named patterns in regexps is slightly counterintuitive, probably because the first use case was to match a single IP. But when it's clarified and along with native/plugin actions, I thinkreaction
will be an unique intermediate between ad-hoc/low-level monitoring and big monitoring stacks.The community is slowly building, it is partially funded by NLNet, but it is hosted on a small forge and could benefit from wider contributions and opinions, especially because decisions about adding features and configuration options would have to be very cautious to keep its current "simple yet powerful" vibe. So I think it has its place there.
The main maintainer and I belong to the same FLOSS hosters collective known as CHATONS.
Have a nice day!