How a log line flows¶
This page follows one audit record from the moment a source sends it until it is stored, marked, alerted on and archived. It also explains where the platform guarantees that no record is lost and where the limits are. To see the same path on a running system, use Platform → Pipeline; see Pipeline.
Community Enterprise
Overview¶
flowchart LR
subgraph In[Ingest]
S1[Syslog TCP 5140 / TLS 6514] --> AL{Allowlist}
S2[SNMP trap 162/udp] --> AL
AL --> V[Vector: parse, raw ignore marks]
S3[Filebeat / Kafka 9092] --> K
V --> K[(Redpanda topics)]
end
S4[Event Hub / Kinesis / CloudWatch Logs] --> W
S5[Guardium archive files] --> R[(restore MySQL)] --> W
K --> W[Worker: decode, policy, classify, mark]
W -->|recognised| CH[(ClickHouse hot tier)]
W -->|not recognised| Q[(Unrecognised queue)]
CH --> MV[Summaries for dashboards]
CH --> E[Cold export every 10 min]
E --> L[(Locked store)]
CH --> A[Alert engine every 30 s]
CH --> T[Threat rules]
A --> N[Notifications]
Stage 1: the source sends¶
QubeSight accepts records over these endpoints:
| Endpoint | Protocol | Typical sources | Handled by |
|---|---|---|---|
| Syslog, port 5140 | TCP (plain) | Guardium remote syslog, other syslog senders | Vector |
| Syslog over TLS, port 6514 | TCP + TLS | The same senders, in a cluster with ingest TLS enabled | Vector |
| SNMP trap, port 162 | UDP | Guardium SNMP alerts | snmp-trap, then Vector |
| Kafka, port 9092 (9093 with TLS in a cluster) | Kafka + SASL/SCRAM | Filebeat shipping native database audit logs (for example MongoDB, Couchbase, PostgreSQL) | Redpanda, topic filebeat-db-logs |
| Azure Event Hub | Outbound Kafka protocol to Azure | Azure SQL and other Azure database audit streams | Worker (Enterprise) |
| AWS Kinesis, AWS CloudWatch Logs | Outbound AWS API | RDS / Aurora Database Activity Streams, CloudWatch audit log groups | Worker (Enterprise) |
| Guardium archive | Files copied from the archive server | Next-day Guardium archives | Worker with the restore MySQL |
UDP syslog is not accepted: UDP has no buffer and no acknowledgement, so records would be lost silently under load.
Stage 2: the allowlist decides who may send¶
The syslog and SNMP endpoints do not authenticate senders. While the source IP allowlist is enforced, only records from listed addresses or networks are accepted. Rejected records are counted per source address and appear as suggestions in Data Sources → Stream Sources → Access allowlist (Syslog/SNMP). A new installation turns enforcement on with the server's own network. The Kafka endpoint is protected by SASL/SCRAM credentials instead, and cloud sources by the credentials of the cloud integration. See Ingest access allowlist.
Stage 3: Vector parses syslog lines¶
Vector tries parsers in a fixed order and stops at the first that matches:
- The built-in Guardium LEEF parser.
- Your own parsing rules, newest first (created under Platform → Pipeline → Parsing).
- The built-in Guardium JSON template. It accepts a JSON object only if at least one key maps to a known column.
- None matched: the line is marked as not parsed.
Parsing splits the line into columns: database user, client address and port, server address and port, database type, program, session, SQL text and event time. Keys that you do not map are kept as JSON in an Additional info column; nothing is discarded.
Vector then checks the raw text rules (ignore rules on the raw line). A matching rule no longer drops the line in Vector: it writes the rule's name onto the line so that the worker can count it.
Finally Vector writes the line to the Redpanda topic raw-db-logs.
Parsing happens before storage
QubeSight parses at write time. Columns are fixed when an event is stored, which keeps dashboards, alerts and reports fast. A format QubeSight does not know is not lost: it waits in the unrecognised queue until you teach the format with a parsing rule, and the queued lines can then be reprocessed.
Stage 4: Redpanda buffers every record on disk¶
Every record from Vector and from Filebeat is written to Redpanda before any processing. Redpanda is the platform's shock absorber: if the worker is slow, restarting or being updated, records accumulate on disk and are processed later. In a cluster, each topic has three replicas on three brokers.
Stage 5: the worker enriches and decides¶
The worker reads Redpanda (and the cloud sources) and processes each record:
- Decode. Records from Vector are already split into fields. Filebeat, Event Hub, Kinesis and CloudWatch records are decoded by built-in decoders for each format. Parsing rules do not apply to these paths.
- Unrecognised lines. A syslog line that no parser recognised is written, raw, to the unrecognised queue with the sender's address as its source. It is not stored as an event.
- Raw ignore. A line that a raw text rule marked is not stored and is counted under that rule's name.
- Storage policy. Ordered rules look at the parsed fields and decide: store, ignore, or store directly without SQL analysis. The first matching rule wins. If no rule matches, the event is stored. Built-in rules, off by default, can ignore known noise such as cloud management users.
- SQL classification. The worker parses the statement, finds the tables it touches (including joins, sub-queries and
INSERT … SELECT) and assigns a command class: query, data change, schema change, permission change, transaction control, procedure call, session, control flow or administration. - Critical marking. Critical marking rules (DB_ALERT) match events as they arrive and store them with severity CRITICAL and risk 100.
- Write. Events are written to ClickHouse in batches of up to 5,000 events or 32 MiB, at least every 30 seconds on a quiet system.
Every record that is not stored is counted by reason (built-in rule, storage policy rule, raw text rule) and shown under Platform → Pipeline → Flow. The counters are kept for 35 days.
Stage 6: storage and summaries¶
Stored events go to the event table in ClickHouse. Each event keeps its raw line, so you can always see what the source actually sent. Summary tables are updated as events are inserted; dashboards and Activity Overview read these summaries rather than the raw table. In a cluster, each node summarises only the events written on it, so summaries never count an event twice.
Each event has a deterministic ID. If the same record is delivered twice (for example after a worker restart), the second copy carries the same ID and the table merges the two.
Stage 7: marking, threat rules and alerts¶
After storage, three mechanisms look at the data:
- Threat rules scan stored events and produce threat signals, shown on Dashboards → Security. Signals can be marked as false positives.
- The alert engine in the control plane evaluates alert rules every 30 seconds: sensitive-object operations, privilege changes, auditing disabled, failed sign-in bursts, mass reads, off-hours access, Guardium policy alerts, source silence and platform health. An event rule raises one alert per new finding; a state rule keeps one alert open while the condition holds. Repeats increase a counter instead of opening new alerts.
- Notifications are delivered through the channels each rule selects (e-mail and webhook in Community; Slack, Teams, PagerDuty and syslog in Enterprise) and can be forwarded to a SIEM.
Stage 8: export to the locked store¶
Every 10 minutes the worker exports the block of events received in the last 10 minutes from ClickHouse to the locked store as a Parquet file, locked with Object Lock (COMPLIANCE). Once a day is final, its blocks are merged into one daily file, the daily file is verified against its source blocks and locked for the full retention period. Verification compares every locked row with ClickHouse by event ID and reports missing, modified or extra rows. See Hot and cold storage tiers.
Guardium live rows
Rows received live from Guardium are not exported block by block. The next-day Guardium archive carries the same activity with richer fields and replaces them; those archive rows are exported and locked. Live rows that never receive an archive counterpart are finalised and exported after 36 hours.
Where data can and cannot be lost¶
| Segment | Guarantee | Limit |
|---|---|---|
| Sender → Vector (syslog TCP or TLS) | Delivered once Vector receives the line. | Plain syslog has no application-level acknowledgement. If a node dies suddenly, lines in flight on the TCP connection can be lost; the sender reconnects but does not resend. Use Filebeat, RELP or a sender with a disk queue for zero-loss requirements, and send to the virtual IP. |
| Sender → snmp-trap (SNMP) | Best effort. | SNMP traps are UDP and are never resent. During an update of the SNMP receiver there is a gap of a few seconds. |
| Vector → Redpanda | At least once. Vector keeps lines in a disk buffer (default maximum 2 GiB) until Redpanda confirms them and retries indefinitely. When the buffer is full, Vector slows the senders instead of dropping lines. | A line Redpanda rejects permanently (for example over the size limit) is dropped; it is counted and raises a critical Log loss alert. |
| Filebeat → Redpanda | At least once. Filebeat waits for Redpanda's acknowledgement and resends otherwise. | Duplicates are possible; the deterministic event ID merges them. |
| Cloud source → worker | At least once. The cursor moves only after the ClickHouse write. | Records the cloud service expires before they are read (for example during a long licence pause) cannot be recovered. |
| Redpanda → worker → ClickHouse | At least once. The offset is committed only after the ClickHouse write. | Redpanda keeps unconsumed records for 7 days by default. A backlog older than that is deleted. The product does not show consumer lag. |
Related pages¶
- Pipeline for the screens that show and change each stage.
- Add a new data source for teaching QubeSight a new format.
- Syslog and Kafka TLS.
- Capacity and benchmark for throughput limits of each stage.