Implement Kafka log consumer with Elasticsearch and database integration
- 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
Showing
... | @@ -58,6 +58,7 @@ require ( | ... | @@ -58,6 +58,7 @@ require ( |
github.com/olivere/elastic/v7 v7.0.32 // indirect | github.com/olivere/elastic/v7 v7.0.32 // indirect | ||
github.com/pierrec/lz4/v4 v4.1.15 // indirect | github.com/pierrec/lz4/v4 v4.1.15 // indirect | ||
github.com/segmentio/kafka-go v0.4.40 // indirect | github.com/segmentio/kafka-go v0.4.40 // indirect | ||
github.com/sony/sonyflake v1.0.0 // indirect | |||
) | ) | ||
require ( | require ( | ||
... | ... |
internal/model/log.go
0 → 100644
Please register or sign in to comment