- 01 Jun, 2025 1 commit
-
-
qiuqunfeng authored
This update introduces the ability to set the log level dynamically based on the LOG_LEVEL environment variable, allowing for better control over logging verbosity. Additionally, the Elasticsearch client creation has been refactored to utilize configuration settings from a JSON file, enhancing the application's configurability. The previous LoadConfig function has been replaced with a more structured approach, and unnecessary code has been removed to streamline the log consumer service.
-
- 07 Mar, 2025 2 commits
-
-
qiuqunfeng authored
- Add number decoder to Elasticsearch client configuration - Ensure proper parsing of numeric fields in Elasticsearch responses
-
qiuqunfeng authored
-
- 05 Mar, 2025 1 commit
-
-
qiuqunfeng authored
- Implement dynamic Kafka authentication mechanism (PLAIN/SCRAM) - Add environment variable-based Kafka broker and authentication configuration - Modify log consumer service to support flexible Kafka connection setup - Update Elasticsearch store initialization with new index template - Extend WAF service types to support listener name and hosts
-
- 01 Mar, 2025 2 commits
-
-
qiuqunfeng authored
- Add log consumer service to process WAF detection messages - Implement message handling with JSON unmarshaling - Save WAF detection logs to Elasticsearch - Update WAF service attack number in database - Modify ESStore to support bulk indexing with channel-based approach - Add constants for Kafka topics and Elasticsearch indices
-
qiuqunfeng authored
- Added `Name` field to `ListenerWaf` struct in `internal/service/types.go` - Updated Go module dependencies, adding Elasticsearch client library - Removed `CreateListener` method from `waf.go` service
-