114 Commits
Author SHA1 Message Date
thomas 35aa32389a fix: Simplify timestamp parsing by removing timezone and format configuration 2026-09-08 23:41:10 +02:00
thomas 701b5b077f Split configuration to manage different time format 2026-09-08 23:27:48 +02:00
thomas f4c2628e0c fix: Improve log fetching by filtering timestamps 2026-09-06 13:11:31 +02:00
thomas a3402c85d6 Removed duplicate notification of logs that are outside the specified time range. 2026-08-31 22:23:04 +02:00
thomas a5337c3d29 feat: Refactor log-alert application into modular structure
- Introduced alerters package with base Alerter class and implementations for LogAlerter and GotifyAlerter.
- Created fetchers package with abstract LogFetcher class and implementations for FileLogFetcher, LokiLogFetcher, and ParseableLogFetcher.
- Added filters package with base Filter class and implementations for RegexpFilter and GeolocationFilter.
- Implemented rules package with base AlertRule class and SimpleAlertRule for alerting logic.
- Enhanced configuration handling with utilities for loading and validating JSON configuration.
- Updated logging setup for better logging management.
- Modified main application logic to utilize the new modular structure, improving maintainability and readability.
- Updated config.json and config.schema.json to reflect changes in alerting and fetching configurations.
- Added python-dateutil to requirements for date parsing functionality.
2026-08-30 23:22:38 +02:00
thomas b7f1b97434 Use RESTIC_HOST for notifications instead of HOSTNAME 2026-08-22 23:22:35 +02:00
thomas c9892bfd81 Updated rsync-server 2026-08-21 13:56:06 +02:00
thomas 8e1dee24d4 Remove quiet mode from restic backup commands 2026-06-24 20:54:52 +02:00
thomas 1ebe65fc80 Allow the use of templates for the alert title 2026-05-10 12:26:02 +02:00
thomas 0fee65bc93 Update Dockerfile to use latest Golang Alpine image 2026-05-01 19:19:02 +02:00
thomas 2d62c94031 Allow restic to be run from outside 2026-04-19 23:12:19 +02:00
thomas c7d46d7186 Reduced the output 2026-03-29 13:03:47 +02:00
thomas e1d9f968a9 Refactor error logging to use fmt.Println for consistency 2026-01-23 22:56:26 +01:00
thomas 1bb341b14e Enhance recipe4reader: Add image handling and improve Markdown conversion 2026-01-11 23:11:43 +01:00
thomas e81a5ff3cc Added recipe4reader 2026-01-11 18:27:59 +01:00
thomas 285aa5be0c Added the ability to backup inside the restic container 2025-12-18 23:02:51 +01:00
thomas 89bc68631a Improve WhatsApp connection handling 2025-10-18 23:53:57 +02:00
thomas b2d515a460 New simplified version 2025-10-18 18:08:21 +02:00
thomas 06ca841919 New simplified version 2025-10-18 18:03:49 +02:00
thomas 227f1d48e1 Added the geolocation filter and improved the config file format 2025-10-18 15:43:33 +02:00
thomas b06a39df3a Improved logging 2025-10-17 23:32:11 +02:00
thomas 7de812d002 Add jsonschema validation (#6)
* Add JSON Schema validation for log-alert config and require jsonschema

* Add jsonschema dependency to requirements

* Enhance config loading with schema validation

Added JSON schema validation for configuration and improved error handling.

* Simplify token assignment and config loading

Refactor token retrieval and configuration loading.
2025-10-16 21:02:28 +02:00
thomas c67b2b54c8 Upgraded version 2025-10-16 00:03:31 +02:00
thomas 0b5559be69 First version of log-alert 2025-10-15 22:32:51 +02:00
thomas 8385c5fb1d First version of log-alert 2025-10-15 22:30:08 +02:00
thomas 2f34fbac5f Removed ssh-chrooted 2025-08-31 22:11:05 +02:00
thomas 08cc0db5ec Revert to alpine 3.21 2025-08-17 14:54:46 +03:00
thomas a659f3c084 Revert to Alpine 3.21 2025-08-17 14:40:30 +03:00
thomas 83240a5bc4 Added a check not to backup the root directory 2025-07-06 13:07:31 +02:00
thomas be38f711b7 Refactored the code 2025-06-20 23:16:32 +02:00
thomas 7ea5713bf5 Updated GO version to correct the build 2025-06-19 23:05:06 +02:00
thomas c8f24c08ec Corrrected the script 2025-06-19 21:32:13 +02:00
thomas 99c016dba9 Corrected the script 2025-06-17 00:06:45 +02:00
thomas 6299e4e01a Update GO version 2025-06-16 20:17:54 +02:00
thomas fe23e93e4a Ouputs logs to stdout 2024-10-21 22:51:40 +02:00
thomas 0cd3523438 Simplified the script by adding Runitor 2024-10-11 22:07:15 +02:00
thomas 163ae5a8bf Simplified the script by adding Runitor 2024-10-11 22:05:11 +02:00
thomas 56037ebe0f Delete immich-souvenirs/README.md 2024-10-10 09:06:52 +02:00
thomas aa87ef2969 Added runitor to handle HC pings 2024-10-06 15:20:35 +02:00
thomas 3ec4250f24 Removed the unused images 2024-10-02 18:02:22 +02:00
thomas dafa972661 Updated the GO version 2024-10-02 08:20:20 +02:00
thomas d4926240ab Now send the logs to a file 2024-09-25 17:45:43 +02:00
thomas 14fd8a359b Corrected the build 2024-09-25 10:17:48 +02:00
thomas dbeeefab86 Added a chrooted sshd server 2024-09-24 23:20:02 +02:00
thomas 9322b554a4 Corrected the multiple send 2024-09-09 22:39:25 +02:00
thomas 73d7ad868d Now able to change the time to run and retries in case of error 2024-08-31 14:01:21 +02:00
thomas 6957da86a8 Removed piwigo-souvenirs 2024-06-30 18:43:42 +02:00
thomas 91d572fb1a Moved the parameters to env variable + Added healthchecks 2024-06-16 18:36:16 +02:00
thomas 28bc2b92bc Updated to immich 1.106 2024-06-15 12:11:34 +02:00
thomas 07c387ddbb Added immich-souvenirs 2024-06-08 15:05:37 +02:00