Tutorial: connect your first source¶
In this tutorial you send database activity to QubeSight over syslog from a second machine, then find the events in Activity Overview and in a report. You use a few test records in the IBM Guardium LEEF format, because QubeSight parses that format without any configuration. When you finish, you know the complete path from a sending host to a stored, searchable event.
Community Enterprise
Time required: about 15 minutes.
What you need¶
- A QubeSight installation from Tutorial: install a single node, reachable at
192.0.2.10. - A sending machine in the same network as the QubeSight server, for example
192.0.2.50, withbashandnc(netcat) installed. A Linux workstation or a utility server works. - TCP port 5140 open from the sending machine to the QubeSight server.
- A browser signed in to QubeSight as
admin.
Why a second machine
A new installation turns on the source IP allowlist for the syslog and SNMP endpoints and adds the server's own network to it. Lines from a machine in that network are accepted. Lines sent from the QubeSight server itself reach the log collector through the container network and are not on the list, so they are rejected. See Ingest access allowlist.
Step 1: check the allowlist¶
- In QubeSight, open Data Sources → Stream Sources → Access allowlist (Syslog/SNMP). Only administrators see this tab.
- Under Allowed addresses and networks, check that the network of your sending machine is listed (for example
192.0.2.0/24). - If it is not listed, enter the sending machine's address in the address field, add a note such as
tutorial sender, press Add and then Save. - Wait until the page says The log collector (Vector) on this server applies the current list. This takes up to 30 seconds.

Step 2: send test records¶
On the sending machine, create a file send-test.sh with the following content. It sends five audit records for a PostgreSQL server, as a Guardium collector would, one every two seconds.
#!/bin/bash
# Sends five Guardium LEEF audit records to QubeSight over syslog TCP.
QS_HOST=192.0.2.10
QS_PORT=5140
SQL_LIST=(
"SELECT * FROM customers WHERE id = 42"
"UPDATE customers SET email = 'a@example.com' WHERE id = 42"
"CREATE TABLE tutorial_test (id INT)"
"GRANT SELECT ON customers TO report_user"
"DROP TABLE tutorial_test"
)
VID=900000000000000000
for SQL in "${SQL_LIST[@]}"; do
VID=$((VID + 1))
SYSLOG_TIME=$(date "+%b %e %H:%M:%S")
DEV_TIME=$(date -u "+%Y-%m-%d %H:%M:%S.000000") # devTime is read as UTC
START_MS=$(date +%s%3N)
MSG="${SYSLOG_TIME} guardium-collector guard_sender[2618]: LEEF:1.0|IBM|Guardium|11.0|Log Full Details|ruleID=1|ruleDesc=Log Full Details|severity=INFO|devTime=${DEV_TIME}|serverType=POSTGRESQL|classification=|category=|dbProtocolVersion=3.0|usrName=|sourceProgram=PSQL|start=${START_MS}|dbUser=APP_USER|dst=198.51.100.20|dstPort=5432|src=203.0.113.5|srcPort=50123|protocol=TCP|type=SQL_LANG|violationID=${VID}|error=|ticketid=|sql=${SQL}"
echo "$MSG" | nc -w 1 "$QS_HOST" "$QS_PORT"
echo "sent: $SQL"
sleep 2
done
Run it:
Each line is a syslog message whose body is a LEEF record. Keep sql= as the last field: the SQL text can itself contain |, so QubeSight reads it to the end of the line. devTime is read as UTC, which is why the script uses date -u. The fields that QubeSight uses include dbUser (database user), src (client address), dst and dstPort (database server), serverType, sourceProgram and sql.
Real sources
In production, configure the real source instead of this script: Guardium remote syslog (Guardium syslog), native database audit logs through Filebeat (Native database audit logs), or a cloud stream (Integrations).
Step 3: confirm that the lines were stored¶
The worker writes events to ClickHouse in batches. On a quiet system a batch is written at least every 30 seconds, so allow up to a minute.
- Open Platform → Pipeline → Flow.
- Select the last hour. The counters show how many lines were read, how many were stored (green), how many were not recognised (yellow) and how many a rule did not store (red).
- You should see five stored lines and no unrecognised ones.
If the lines appear as not recognised, the record format was changed while copying the script; compare it with the example above. If nothing appears at all, see Troubleshooting.

Step 4: find the events in Activity Overview¶
- Open Monitoring → Activity Overview (the home page).
- Select a short time range such as the last hour.
- Check the following cards:
- Total events has increased by five.
- SQL command breakdown shows one query (SELECT), one data change (UPDATE), two schema changes (CREATE and DROP) and one permission change (GRANT).
- The user and client lists show
APP_USERand203.0.113.5. The Databases card stays at 0, because the test events carry no database name; the server198.51.100.20appears in the event details and in Reports. - Log sources lists the syslog source.
The summary cards are recalculated in the background. If a card shows Preparing the summary…, wait a minute and refresh.

Step 5: open the events in a report¶
- On Activity Overview, press Open in Reports next to one of the lists, or open Monitoring → Reports.
- In the report catalog, open SQL Detail.
- Set the time range to the last hour and press Run.
- The table lists the five statements with their time, database user, client address, server, command and SQL text.
- Add a filter for the database user: press Add filter, choose the user field, enter
APP_USER, then press Apply & Run.
You now see exactly the records the test script sent.

What you learned¶
- Syslog sources send to TCP port 5140. UDP syslog is not supported.
- The source IP allowlist decides which hosts may send syslog and SNMP.
- Guardium LEEF records are parsed without configuration. Other formats land in the unrecognised-lines queue until you create a parsing rule under Platform → Pipeline → Parsing.
- Pipeline → Flow tells you whether each line was stored, not recognised or not stored by a rule.
- Stored events appear in Activity Overview, dashboards and reports.
Troubleshooting¶
| Symptom | Cause and action |
|---|---|
nc reports "connection refused" or times out |
Port 5140/TCP is blocked between the machines, or the syslog port was changed at installation. Check the firewall and the syslog address on the installer's Done page. |
| Flow shows nothing and the allowlist page lists your address under Suggestions with a Rejected count | The sending address is not on the allowlist. Add it (Step 1) and send again. |
| Lines appear as not recognised | The line is not a valid LEEF record. Open Platform → Pipeline → Parsing → Unrecognized logs (not stored) to see the raw line. |
| Events are in Flow but not in Activity Overview | The summary is still being built, or the selected time range does not cover the event time. The event time comes from devTime in the record. |
Next step¶
Continue with Tutorial: from alert to report.