Project

General

Profile

Actions

Feature #352

closed

Switching to message queuing system for output

Added by Eric Leblond over 12 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Effort:
Difficulty:
Label:

Description

Actual threading model consider output modules as standard functions which are run synchronously in the life of a packet inside suricata. But logging functions involve I/O on disk or on the network. They thus can be really time expensive.
There is a potential performance issue there because, the building the alert message trigger the locking of ressources like flow. It will thus be interesting to switch:
  • to asynchrounous I/O operation OR
  • to a message queuing system where an alert structure build from a copy of information is sent to the output modules.
Actions #1

Updated by delta yeh over 12 years ago

ZeroMQ maybe a candidate

Actions #2

Updated by Victor Julien over 12 years ago

  • Status changed from New to Assigned
  • Assignee set to Eric Leblond
  • Target version set to 1.3beta2

Message queueing a good idea. Lets implement this for 1.3.

Can you come up with a higher level design?

Actions #3

Updated by Victor Julien almost 12 years ago

  • Target version changed from 1.3beta2 to 1.4
Actions #4

Updated by Victor Julien over 11 years ago

  • Target version changed from 1.4 to 2.0rc2

Lets discuss this in Amsterdam next month.

Actions #5

Updated by Victor Julien over 10 years ago

  • Target version changed from 2.0rc2 to TBD
Actions #6

Updated by Victor Julien over 10 years ago

  • Target version changed from TBD to 3.0RC2
Actions #7

Updated by Victor Julien over 9 years ago

  • Target version changed from 3.0RC2 to 70
Actions #8

Updated by Victor Julien about 8 years ago

We now support redis. Probably good enough for now?

Actions #9

Updated by James Mistry over 6 years ago

I'm interested in this as a way of using Suricata as a pre-filter for traffic/parse results to be passed to external software components - that are very loosely-coupled with Suricata - for more advanced/complex analysis in real-time.

Some things that would make this feature work well for this use case:

  • Messages are serialised to a format that supports explicit/formal schemas, ideally that can be evolved in a backwards-compatible way. For example, Apache Avro or Protobufs.
  • Output flow/packet parse results with alerts, as well as raw packet/session data, in a way that is cheap to de-serialise (e.g. avoid Base64).
  • Control topics associated with messages within the signature.

I'm happy to have this feature assigned to me if that helps.

Actions #10

Updated by Victor Julien over 5 years ago

  • Status changed from Assigned to New
  • Assignee changed from Eric Leblond to Anonymous
  • Target version changed from 70 to TBD
  • Effort set to medium
  • Difficulty set to high

Setting difficulty to high as this could severely impact perf if done wrong.

Actions #11

Updated by Andreas Herz about 5 years ago

  • Assignee set to Community Ticket
Actions #12

Updated by Jason Ish over 4 years ago

I propose we close/reject this issue as its something we often agree is not to be part of Suricata. Our queue is the disk, or the socket or named pipe (and whatever is at the end of that). And we have other issues to address specific performance issues of the logging output.

Actions #13

Updated by Victor Julien over 4 years ago

  • Status changed from New to Closed
  • Assignee deleted (Community Ticket)
  • Target version deleted (TBD)
  • Effort deleted (medium)
  • Difficulty deleted (high)

Agreed, thanks Jason.

Actions

Also available in: Atom PDF