Skip to main content

Overview

mataelang-event-stream-aggr is the Kafka stream processor that turns raw sensor events into geo-enriched, aggregated alerts.

Flow

Responsibilities

  1. Consume the input topic (input_kafka_topic, default sensor_events), deserializing Avro via the Schema Registry.
  2. Enrich source/destination IPs with geo information. internal/iplookup is an HTTP client that calls an external lookup API's /lookup endpoint — geo data is not read from a local MaxMind database.
  3. Aggregate / transform events (internal/processor).
  4. Produce to the output topic (output_kafka_topic, default snort_alerts).

Configuration

SettingKeyCompose value
Kafka brokersKAFKA_BROKERSbroker:29092
Input topicINPUT_KAFKA_TOPICsensor_events
Output topicOUTPUT_KAFKA_TOPICsnort_alerts
Schema RegistrySCHEMA_REGISTRY_URLhttp://schema-registry:8081

Downstream

snort_alerts is consumed by Logstash, which indexes events into OpenSearch and republishes geo events to the threat-map topic. See Messaging & Storage and the Data Plane scenario.