Skip to main content
Toktra’s SIEM integration delivers security events to your existing monitoring stack as they happen. All events are HMAC-signed so your SIEM can verify authenticity before ingesting.

Supported platforms

Splunk

HTTP Event Collector (HEC) — events are delivered to /services/collector/event with a Splunk bearer token.

Datadog

Logs API (/api/v2/logs) and Metrics API (/api/v2/series) — uses an DD-API-KEY header.

Elasticsearch

Bulk index API — daily indices named toktra-security-events-YYYY.MM.DD.

Configuring a SIEM connector

1

Open the Integrations page

In your Toktra dashboard, go to Integrations → SIEM (/integrations/siem). Click Add connector.
2

Choose a platform

Select Splunk, Datadog, or Elasticsearch from the platform dropdown.
3

Enter credentials

Fill in the platform-specific fields. See Required credentials below for what each platform needs.
4

Configure event filters

Optionally restrict which event types and severity levels are forwarded. See Filtering events.
5

Send a test event

Click Test delivery. Toktra sends a synthetic test_connection event to your SIEM and shows you the response. Confirm the event appears before saving.
6

Save and activate

Toggle Active on, then click Save. Toktra begins forwarding events immediately.

Required credentials

Environment variables

Event payload format

Every event Toktra delivers has this JSON structure:
Policy violation event
The full payload sent to your SIEM also includes an event_id (UUID), summary (human-readable description), source ("toktra"), user_email, and a tags object for custom metadata.

Event types


Signature verification

Toktra signs every outbound payload with HMAC-SHA256 using your SIEM_SIGNING_SECRET. The signature is included in the X-Toktra-Signature header in the format sha256=<hex-digest>. To verify the signature on your SIEM side:
Python verification example
Node.js verification example
Always use a constant-time comparison (e.g. hmac.compare_digest or crypto.timingSafeEqual) when verifying signatures. Standard string equality is vulnerable to timing attacks.

Retry behavior

If delivery fails (non-2xx response or network error), Toktra retries up to 3 times using exponential backoff: After three failed attempts, the delivery is marked failed and logged. You can inspect delivery logs in Integrations → SIEM → [connector name] → Delivery history.

Test delivery

Click Test delivery on any connector to send a synthetic test_connection event. The dashboard shows whether delivery succeeded and returns the event_id. Use this button after:
  • Initial setup to confirm credentials are correct
  • Rotating credentials
  • Recovering from a delivery failure

Filtering events

By default, all event types at all severity levels are forwarded. To restrict forwarding, set an event filter in the connector configuration:
Events filter example
Save your connector after updating the filter. The new filter applies to events from that point forward — historical events already delivered are not affected.

Splunk index template

Toktra delivers events to the toktra index with sourcetype toktra:security. To use a different index, update the connector configuration and ensure that index exists in Splunk with appropriate access controls.

Elasticsearch index template

Toktra creates a daily index named toktra-security-events-YYYY.MM.DD (UTC). Apply the built-in index template via the Create index template button on your Elasticsearch connector to ensure correct field mappings and shard configuration.
Index template (applied automatically)