11 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 1ebe65fc80 Allow the use of templates for the alert title 2026-05-10 12:26:02 +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 8385c5fb1d First version of log-alert 2025-10-15 22:30:08 +02:00