Guardium SNMP live path¶
This guide shows how to receive Guardium activity in real time as SNMP traps, how QubeSight configures the Guardium side for you, and how live rows are replaced by the next day's archive so that every event is counted once.
Community Enterprise
Receiving traps is part of both editions. The integration is created on the Data Sources → Stream Sources → Guardium tab, which in 2.0.110 is shown only with Enterprise (see Guardium overview).
How it works¶
flowchart LR
R[Guardium rule match] --> AL[Guardium alerter]
AL -- SNMP trap, UDP 162 --> L[QubeSight trap listener]
L --> V[Collector: LEEF parser] --> K[Internal Kafka] --> W[Worker] --> E[Event table]
Guardium rules that log full details get an additional alert only action with SNMP notification using the LEEF message template. Each matching event becomes one trap carrying one LEEF line. QubeSight's listener receives it on UDP 162, adds the sender address and a UTC time, and hands it to the same LEEF parser that reads syslog. Guardium's alerter polls about every 60 seconds, so events arrive in batches about one minute after the activity.
Prerequisites¶
- A Guardium integration with Live Data (see Guardium overview).
- UDP 162 open from every Guardium Central Manager and collector to the QubeSight host. In a cluster, traps go to the virtual IP.
- The sending appliances listed in Data Sources → Stream Sources → Access allowlist (Syslog/SNMP) if enforcement is on.
Step 1: set the receiver address¶
Guardium must send traps to the host address of the QubeSight server as reachable from Guardium. A container-internal address (for example a Docker or Podman bridge address) cannot be reached from the LAN; traps sent there are lost silently.
QubeSight chooses the address in this order: the public host address set at installation, the address saved on the Live data (SNMP) tab, the worker's address if it is an IP, and, only when QubeSight does not run in a container, the local address of the route to Guardium.
- Open Guardium → Live data (SNMP).
- Check QubeSight SNMP trap receiver (IP). If it is empty or wrong, enter the host address (for example
192.0.2.10) and press Save. - If the address is a container-internal, loopback or invalid address, a red warning explains why Guardium cannot reach it. Apply anyway appears only after Apply to Guardium (SNMP) failed because Guardium could not reach an address inside QubeSight's container network; use it only on hosts that really use host networking.
Step 2: set the SNMP profile (optional)¶
The Guardium SNMP profile card on Data Sources → Stream Sources → Guardium holds the profile applied to the appliances: SNMP version (v2c or v3 authPriv); for v2c the Query community string (1 to 32 characters; ******** keeps the saved one), and for v3 authPriv the SNMPv3 username, Authentication protocol (auth), Authentication password (auth) (8 to 12 characters), Privacy protocol (priv) and Privacy password (priv) (8 to 20 characters). Press Save SNMP profile (SNMP profile saved; you can apply it to an appliance from the Guardium health screen.). The same version sets the trap receiver mode shown on Live data (SNMP) as Trap receiver · SNMPv2c or Trap receiver · SNMPv3.
- With v1/v2c, a trap is accepted only with the community that was applied to the Guardium alerter through Apply to Guardium (SNMP). The product default community is
qubesight. - With v3, traps must arrive at the configured security level (authPriv). Traps without authentication or encryption are rejected. While v3 is active, v1/v2c traps are rejected.
- While the profile is set to v3 authPriv, Apply to Guardium (SNMP) is disabled (no tooltip explains why): configure the SNMPv3 trap target on the Guardium alerter yourself, or apply with v2c.
Step 3: put the LEEF template into Guardium¶
- On Guardium → Live data (SNMP), open the Guardium LEEF message template sub-tab (the rules are under Setup guide).
- Choose a template and press Copy:
- Recommended: no delay (real time): every documented alert variable except the five delayed ones. Traps arrive at event time.
- With delayed variables (full): adds
%%RecordsAffected,%%ResponseLength,%%succeeded,%%uid_chainand%%compressed_uid_chain. If the template contains even one of them, Guardium sends every trap about 6 to 7 minutes late. The event time stays correct, but live screens and alerts lag by that much.
- In Guardium, open Setup → Tools and Views → Global Profile → Message Templates, open the LEEF template and paste the text as is. It is a single line; do not add line breaks.
sql=%%SQLString must stay the last field. You may remove fields, but do not reorder them. The reasons are explained in Guardium syslog.
Step 4: apply to Guardium¶
- Press Apply to Guardium (SNMP). QubeSight sets the alerter SNMP target of the Central Manager and the collectors to the receiver address and adds the SNMP alert action to the rules that use the LEEF template.
- A success message confirms: Guardium alerter SNMP + policy actions configured.
The button is disabled while the receiver address has unsaved changes (save first), while no receiver address is saved, and while the SNMP profile is set to v3. After the run, a per-step result list shows what was configured on each appliance.
When the live path works, the tab shows the saved receiver address, the Apply to Guardium (SNMP) button and, in the Guardium → QubeSight box, the time and sender of the last packet that arrived from the network.
Verification¶
- On Guardium → Live data (SNMP), the box Guardium → QubeSight (last packet from the network) shows the source, time and number of packets received from the network since the listener last started. This box is the proof that Guardium reaches QubeSight.
- Send test trap (explained under How does it work?) sends a sample LEEF trap from QubeSight to itself. It tests the path inside QubeSight (listener, collector, Kafka, event table) only; it does not prove that Guardium can reach QubeSight.
- The Incoming packets (diagnostics) sub-tab lists the latest raw packets on UDP 162 with a hex dump and a status per packet; it refreshes every 2 seconds while Listening (2 s) is on.
- Run a statement that matches a rule with full-details logging, wait about one minute, and search for it in Reports. Live rows have the product Guardium; the sender IP is the appliance that sent the trap.
Live and archive reconciliation¶
The same Guardium event first arrives on the live path (fewer fields) and the next day from the archive (complete). Without reconciliation it would be counted twice.
| When | What happens | Result |
|---|---|---|
| Day 1 | Traps are stored as live rows. The alert engine evaluates them; dashboards count them. | Real-time alerts and dashboards. |
| Day 2 | The archive is restored. After each archive file, reconciliation runs for that file's time range: a matching live row is deleted and the archive row remains. | One detailed row per event. |
| Right after | The affected days are queued and the dashboard summaries for those days are rebuilt from the event table. | Dashboards count each event once. |
Matching rules:
- The archive wins. The archive row is a superset of the live row.
- With the full template, the live row carries Guardium's session id and construct id; when both sides have them, they must be equal.
- Otherwise rows match on content: same server IP, client IP, ports, DB user (case-insensitive), the same second (plus or minus one second) and compatible SQL text. Whitespace, case and the truncation or quoting differences of LEEF are tolerated.
- A failed statement (a
DB_SQLlive row) can match the archive'sEXCEPTIONrow written up to 10 seconds later from the same connection. - Live rows that carry a policy violation are never deleted. Such an event appears twice, consistently in raw data and summaries.
- A live row with no archive match is kept and raises an alert (below). This errs on the side of a temporary duplicate rather than data loss.
- A restored row is never an alert source by default, so a restore does not reopen closed alerts, inflate counters or resend notifications.
Archive-only installations
Because restored rows do not raise alerts by default, an installation without any live path gets no alerts from archive data. To change this per rule, add "include_restored": true to the rule's parameter JSON under Assurance Center → Alerts & Notifications → Rules. Do not do this when a live path also exists, or each event alerts twice.
Two built-in alert rules watch the reconciliation (Assurance Center → Alerts & Notifications → Rules):
| Rule | Raised when | Resolved when |
|---|---|---|
Live record missing from the archive (guardium-live-not-in-archive) |
After the latest reconciliation round of a sender, live rows without an archive match remain. The evidence lists the sender, device, day, count and up to 50 sample ids. | The gap is fixed and the round is run again. |
Guardium archive not received (guardium-archive-missing) |
Live rows of a sender are older than 36 hours and no archive restore covered them. | That day's archive is restored and reconciled. |
Both rules apply only to senders whose mapping to an archive device has been learned from an earlier successful match.
Reconciliation runs automatically after every restored archive file. An administrator can also run a round for a date range through the REST API (POST /api/v1/admin/guardium/live-reconcile). The call is a dry run by default and only reports counts; a real round needs "dry_run": false. Ranges are in UTC and at most 31 days. See REST API.
Troubleshooting¶
If nothing arrives from Guardium, work through the checklist shown on the tab:
- Is the receiver IP the host's address as reachable from Guardium (not a container-internal address)?
- Did you press Apply to Guardium (SNMP)? The alerter SNMP target of the Central Manager and the collectors must be this IP.
- Is UDP 162 open in the host firewall, and is there a network path from Guardium to the host?
- Did real activity matching a full-details rule happen? The alerter sends a trap only when a rule matches.
The Status column of Incoming packets (diagnostics) shows the trap receiver's status text; the English interface shows the English wording. Packets recorded before the upgrade to 2.0.107 have no English text and still show the Turkish wording. The statuses mean:
| Packet status (meaning) | What to check |
|---|---|
| Community mismatch | A v1/v2c trap arrived whose community is not the applied one. |
| SNMPv3 active: packet rejected | The receiver runs in v3 mode and either a v1/v2c packet arrived, or a v3 packet could not be verified (wrong user, missing or wrong authentication or privacy). |
| Parse error | The packet could not be decoded (also possible for a v3 packet whose privacy settings do not match). |
| Trap received (no event text) | The trap carried no LEEF message; check the template. |
| Forwarding error | The event could not be passed on to the collector; check the collector log. |
| Source not on the allowlist | The sender is not listed in the enforced allowlist. |
| Event parsed and forwarded | The trap was accepted. |
Packets that pass but produce no event: check Platform → Pipeline → Parsing → Unrecognized logs and the template rules.
Limitations¶
- SNMP is an unencrypted protocol (except v3 with privacy). It is not covered by ingest TLS.
- A trap with the full template is about 1.4 to 1.5 KB. On paths with a 1500-byte MTU it is IP-fragmented; firewalls that drop fragments drop such traps.
- Event time: the listener converts Guardium's local time to UTC by inferring the zone offset from the arrival time, rounded to 30 minutes within plus or minus 14 hours. Zones with 45-minute offsets are not supported. With the full template the exact time is taken from
%%receiptTimeMills. Without it, a trap delayed by more than about 6 minutes is stored with its arrival time and may not reconcile. - If the archive arrives before a late trap, reconciliation does not run again automatically for that trap; the live row remains and raises Live record missing from the archive until a reconciliation round is run.
- Live rows lack verb, objects, session id and the success flag unless the template carries them; the archive fills them.
- Live rows that are not matched within 36 hours are finalised in the immutable cold tier and are no longer deleted by reconciliation (see Hot and cold storage tiers).
- The trap's LEEF line goes through the same parser as syslog, so the same rule applies to result and ticket fields placed after
sql=: they are read as fields, and the original line is always kept in [QS] Raw Payload. See the trade-off under Guardium syslog → Limitations. - Guardium's real substitution of a few variable pairs with a shared prefix has not been observed on every Guardium version. Check the first real trap in Diagnostics after changing the template.