Use ClickHouse SQL to investigate the normalized SIEM data produced by your integrations. Wirespeed stores common event fields in typed wspd_* tables and retains the original vendor payload in its source-specific *_logs table.
Start with a normalized table for cross-source investigations, then query the source table named in _wspd_table when you need vendor-specific fields.
To run an advanced query, navigate to the Events page and select the icon in the top right.Select Ask Wirespeed beside the SQL editor to start the Create Advanced Query workflow. Ask Wirespeed inspects your connected tables, verifies the selected fields, runs a bounded representative query, validates the final SQL, and returns an Execute button that opens the query in Advanced Events.
SELECT _wspd_event_type, count(*) AS event_countFROM wspd_eventsWHERE _wspd_time >= {startTime: DateTime64} AND _wspd_time < {endTime: DateTime64}GROUP BY _wspd_event_typeORDER BY event_count DESC;
Show Find failed authentication activity
SELECT _wspd_time, actor_email, src_ip, src_ip_country, user_agent, messageFROM wspd_authentication_eventsWHERE status = 'FAILURE' AND _wspd_time >= {startTime: DateTime64} AND _wspd_time < {endTime: DateTime64}ORDER BY _wspd_time DESCLIMIT 100;
Show Find successful logins from countries not seen in the preceding 30 days
WITH historical_locations AS ( SELECT DISTINCT lower(actor_email) AS actor_email, upper(src_ip_country) AS country FROM wspd_authentication_events WHERE status = 'SUCCESS' AND src_ip_country != '' AND _wspd_time >= toDateTime({startTime: DateTime64}) - INTERVAL 30 DAY AND _wspd_time < {startTime: DateTime64})SELECT current._wspd_time, current.actor_email, current.src_ip, current.src_ip_country, current.user_agentFROM wspd_authentication_events AS currentWHERE current.status = 'SUCCESS' AND current.src_ip_country != '' AND current._wspd_time >= {startTime: DateTime64} AND current._wspd_time < {endTime: DateTime64} AND (lower(current.actor_email), upper(current.src_ip_country)) NOT IN ( SELECT actor_email, country FROM historical_locations )ORDER BY current._wspd_time DESCLIMIT 100;
Custom detections are created and verified in Ask Wirespeed with a limit of fewer than 100 matches in the last hour and a 7.5-second execution ceiling.