Skip to content

Proposal: Add AI/ML-based network anomaly detection stage to flowlogs-pipeline #1128

@vatankh

Description

@vatankh

Component(s)

flowlogs-pipeline / enrichment stages

Problem

NetObserv provides excellent collection and aggregation of Kubernetes network flow logs,
but the current pipeline stops at aggregation and visualization. There is no native stage
that detects operational anomalies such as sudden throughput spikes, new/unexpected
service-to-service edges, or latency regressions.

Proposed solution

Introduce an optional "anomaly detection" or "smart enrichment" stage that:

  • Consumes aggregated flow records (from Loki, Kafka, or direct pipeline input).

  • Applies simple streaming statistics (EWMA, z-score, moving average) or lightweight ML models
    to compute an anomaly_score per (src, dst, namespace, protocol).

  • Emits enriched flow records with fields like:

    {
      "anomaly_score": 0.87,
      "anomaly_type": "throughput_spike",
      "baseline_window": "5m"
    }
  • Allows sensitivity tuning through configuration (e.g., YAML or environment variables).

  • Outputs can be visualized in Grafana or fed into alerting systems.

Benefits

  • Extends NetObserv’s analytics capabilities beyond raw metrics.

  • Provides proactive detection of performance regressions or misconfigurations.

  • Stays within observability scope (not IDS/security).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions