SIEM integration
SIEM integration streams AI gateway security events to an external Security Information and Event Management (SIEM) system in real time. The gateway emits structured security telemetry for every blocked request, guardrail trigger, and PII scrub event, as well as authentication and authorization failures (sign-in denials, access-denied events) and tool-access decisions of the access layer. Delivery happens on a background timer and never adds latency to inference requests.
Typical use cases:
- Threat detection — correlate blocked requests across tenants or time windows
- Compliance audit — retain a tamper-evident log of all policy violations
- Alerting — trigger SIEM rules on jailbreak attempts, PII leakage, or budget anomalies
Supported backends
| Type | Protocol | Auth | Best for |
|---|---|---|---|
splunk_hec |
HTTPS POST | Authorization: Splunk <token> header |
Splunk Enterprise / Cloud |
elasticsearch |
HTTPS POST | Basic auth | Elasticsearch, OpenSearch |
vector |
HTTP or HTTPS POST | Authorization: Bearer <token> header when a token is set, else none |
Your own Vector, fanning out to Loki, Datadog, S3… |
syslog |
UDP, TCP, or TLS | None | Enginsight, QRadar, ArcSight, CEF-native SIEMs |
Configuration levels
SIEM config is set at two levels:
- Tenant level — applies to all gateways under that tenant by default.
- Gateway level — overrides the tenant default for a specific gateway.
When a gateway has a siem key in its config, it takes priority over the tenant-level setting for that gateway's inference events. Authentication and authorization failures (security events) always go to the tenant-level setting. To fall back to the tenant default, remove the siem key from the gateway config.
Configuration fields reference
Common fields
| Field | Type | Required | Description |
|---|---|---|---|
type |
string | Yes | Backend type: splunk_hec, elasticsearch, vector, syslog |
events |
array | No | Event filter, at most 16 entries. Without it, blocked requests, security events, tool-access denials and governance decisions are sent. See Event filter. |
Splunk HEC fields
| Field | Type | Required | Description |
|---|---|---|---|
url |
string | Yes | HEC endpoint, e.g. https://splunk:8088/services/collector/event |
token |
string | No (Splunk needs it) | HEC token (sent as Authorization: Splunk <token>) |
index |
string | No | Target Splunk index. Omit to use the HEC default. |
Elasticsearch / OpenSearch fields
| Field | Type | Required | Description |
|---|---|---|---|
url |
string | Yes | Base URL, e.g. https://es.corp.com:9200 |
index |
string | No | Index name. Default: aig-logs |
username |
string | No | Basic auth username |
password |
string | No | Basic auth password. Basic auth is sent only when both username and password are set. |
Documents are written to <url>/<index>/_doc (one document per event).
String fields (url, token, index, username, password, host) must not contain control
characters. url is at most 2048 characters, the other strings at most 512.
Vector fields
| Field | Type | Required | Description |
|---|---|---|---|
url |
string | Yes | Vector HTTP source endpoint, e.g. http://vector:8080 |
token |
string | No | Write-only: after saving, the page shows only that a token is stored (it is never sent back to the browser). Leave the field empty to keep it, clear it explicitly to remove it. Bearer token, sent as Authorization: Bearer <token> on every delivery and on Test connection. Without a token (or with an empty one) no Authorization header is sent. A token containing a space is refused when saved (400 invalid_siem); the page shows Remove the spaces: the token is sent as one value. under the field. |
Each HTTP type accepts only the fields listed in its table, because those are the only ones the gateway sends:
username and password are not Splunk HEC fields, token is not an Elasticsearch field, and index, username
and password are not Vector fields. A configuration that carries a field its type does not list (in any form, an
empty string or null too) is rejected with 400 invalid_siem (siem.<field> is not valid for type <type>).
A configuration stored with such a field before it was refused still saves unchanged for an admin /
tenant_admin (a custom-role caller's configuration is validated on every save), and delivery ignores the field as before; any change must drop it, and Test connection on that stored configuration answers
409 invalid_stored_siem_config until it is saved without it (saving from the SIEM streaming page does that).
Configure the HTTP source of Vector to receive events. Vector can then fan out to any sink (Loki, Datadog, S3, Kafka, etc.). To protect the source, set its auth to the bearer strategy with the same token (see the example below). The token is a write-only credential like the Splunk HEC token: the UI shows only that one is set, and it may be stored as a master-key ciphertext.
Syslog / CEF fields
| Field | Type | Default | Description |
|---|---|---|---|
host |
string | — | Syslog receiver hostname or IP |
port |
integer | 514 |
Syslog receiver port (use 6514 for tls) |
protocol |
string | udp |
Transport: udp, tcp, or tls (TLS-encrypted, over TCP) |
format |
string | cef |
Payload inside the RFC 5424 syslog message: cef (ArcSight CEF) or rfc5424 (a JSON object). See Syslog wire format. |
Step-by-step setup for Enginsight: Connect Enginsight SIEM.
Stored credential form
Saved SIEM credentials are write-only and stored encrypted: the page and the API show only that one is set (token_set / password_set). Changing the address of a target that has a stored credential requires entering the credential again (siem_credential_required), so a stored secret is never sent to a new address. Omitting a credential keeps the stored one only for a tenant editor (admin / tenant_admin); a custom role with TENANT_SETTINGS_MANAGE cannot read the stored configuration, so its save replaces the whole configuration and an omitted credential is cleared. Entering a credential again, even an identical one, is saved as a change: it is re-sealed and audited as tenant.siem_changed naming the credential. The SIEM credentials (Splunk HEC token, Basic username and password, Elasticsearch and Vector credentials) are read in either stored form: plaintext, or a master-key-encrypted ciphertext. A stored credential that looks like a ciphertext but cannot be decrypted is never sent as a literal credential: SIEM export for that scope is disabled until the configuration is re-saved, the cause is logged server-side without the value, and POST /tenants/{id}/siem/test against the stored configuration answers 409 with code: "invalid_stored_siem_config" (formerly siem_config_invalid).
Event filter
The events array controls which events are forwarded. Values can be combined. The Which events list on the
SIEM streaming page and in the gateway form shows each value with a plain-language label:
| UI label | Value | What it sends | Example event classes (CEF) |
|---|---|---|---|
| Everything | all |
Every AI request, whatever the outcome, every tool-access decision and every governance decision. High volume. | INFERENCE plus every class below |
| Blocked requests | blocked |
A request was stopped: guardrail, rate limit, budget, IP allowlist, model policy or egress guard. | GUARDRAIL_BLOCK, PII_BLOCK, RATE_LIMIT, EGRESS_BLOCK |
| Guardrail hits | guardrail |
A guardrail fired, whether it blocked the request or only flagged it. | GUARDRAIL_BLOCK, GUARDRAIL_FLAG, EGRESS_FLAGGED |
| Personal data removed | scrubbed |
Personal data was masked: in the request before it reached the model, or in the model's answer. | PII_SCRUB |
| Sign-in and access failures | security |
Failed sign-ins and access-denied answers, plus tool-access denials. | AUTH_FAILURE, ACCESS_DENIED, TOOL_ACCESS_DENIED |
| Every tool-access decision | access |
Each allow and deny the access layer makes for an agent or chat tool call. Includes the allows of users' web calls (web_search, fetch_url, agentic_fetch) in chat. |
TOOL_ACCESS_ALLOWED, TOOL_ACCESS_DENIED |
| Governance decisions | governance |
Approvals and rejections, agents paused or resumed by protection, admin changes to settings, agent and workflow results with personal data held, released or blocked for an external channel. | APPROVAL_DECISION, AGENT_PAUSED, AGENT_RESUMED, CONFIG_APPROVAL_DECISION, ADMIN_CONFIG_CHANGE, DELIVERY_HELD, DELIVERY_RELEASED, DELIVERY_BLOCKED |
⚠️
securityis not "all security events". It covers only sign-in and access failures and tool-access denials. It does not include guardrail, egress or personal-data blocks. For those, also selectblocked,guardrailorscrubbed. To get everything, select Everything (all); expect a high volume.
The exact rules per value:
| Value | Emits when |
|---|---|
blocked |
Request was blocked for any reason (guardrail, rate limit, quota, IP allowlist, or an egress-guard block — including the fail-closed EGRESS_GUARD_ERROR), or an injection in a tool result was withheld (TOOL_RESULT_INJECTION, act=blocked) |
guardrail |
One or more detectors fired (block, flag, or scrub) — including a real egress-guard detection (a block or a monitor-mode flag; not the fail-closed guard error) and every TOOL_RESULT_INJECTION (withheld or flagged) |
scrubbed |
PII was tokenised and restored in the response |
security |
Authentication / authorization failures (sign-in denials, access-denied) — delivered only through the tenant-level SIEM configuration (see below) |
access |
Every tool-access decision (allow and deny) made by the access layer for an MCP tools/call |
governance |
The eight governance decision classes: APPROVAL_DECISION, AGENT_PAUSED, AGENT_RESUMED, CONFIG_APPROVAL_DECISION, ADMIN_CONFIG_CHANGE, DELIVERY_HELD, DELIVERY_RELEASED, DELIVERY_BLOCKED — delivered only through the tenant-level SIEM configuration |
all |
Every inference request, regardless of outcome, every tool-access decision and every governance decision |
Default (no events key or empty array): blocked inference events (including a withheld
TOOL_RESULT_INJECTION) plus all security events and all governance events are forwarded — security
(auth/authz-failure) and governance events are their own categories and emit by default, so a SIEM target gets
them for free. A non-empty events list narrows every category: security events are then included only if
the list contains security (or all), governance events only if it contains governance (or all).
On the SIEM streaming page, selecting nothing saves no events key, which applies this default. In the gateway
form, the rows Sign-in and access failures, Every tool-access decision and Governance decisions are
shown disabled with the badge Organisation only: these events never go through a gateway. A value already
stored on the gateway through the API stays checked and is kept on save. With nothing selected, a gateway sends
its default: blocked requests.
Tool-access decisions (default on). Each decision of the access layer is also a SIEM event, class
TOOL_ACCESS_DENIED (CEF severity 4), TOOL_ACCESS_HELD (severity 3, a call waiting for a human's approval, see
Held tool calls) or TOOL_ACCESS_ALLOWED (severity 1). With the default filter
(no events key or empty array) denies and holds are forwarded; allows are not. security also forwards denies
and holds only; access or all forwards every decision; any other explicit list omits tool-access decisions. A
decision whose verdict is malformed counts as a deny. (A hold is a stored deny, so these filters deliver exactly the
holds they delivered before holds had their own class.) Deploy-visible change: a tenant SIEM target with the default filter
starts receiving tool-access denies; set events explicitly to opt out. Events are sent through the tenant-level
configuration. The event carries the decision, reason, tool, connector, rule, agent, owner, actor kind, request id
and the SHA-256 of the arguments. The owner (and the acting user, where the format carries one) is rendered as in the tenant view of the
access decisions API: a Myra staff account appears as Myra staff stf_<16 hex> (plain Myra staff where no pseudonym key is configured), an erased account as erased,
and a live member of your workspace as the member's id. In the CEF format the acting user (suser) is rendered the same way as the owner (cs6). If the stored record cannot be read when the event is sent, the event is delivered without the owner and the acting user.
Schema note (tool-access decisions). The keys and the string type are unchanged (CEF suser, cs6/owner_id; JSON owner_id, user_id), but on these events the values are no longer always a uuid. A parser must accept Myra staff stf_<16 hex>, Myra staff and erased besides a member id. Security events (AUTH_FAILURE, ACCESS_DENIED) are not affected by this change. The arguments themselves (args_masked) are never sent.
Governance decisions (default on). Approval decisions on held tool calls, automatic agent pauses and
resumes, decisions on held configuration changes and admin configuration changes are SIEM events too (see
Governance events). Each decision is sent exactly once, after it has been saved: a
decision that lost a race against another approver, was rolled back or was replayed sends nothing. With the
default filter (no events key or empty array) every governance event is forwarded; governance or all
forwards them too; any other explicit list omits them. Deploy-visible change: a tenant SIEM target with the
default filter starts receiving the governance classes. To opt out, set an explicit events list without
governance (for example ["blocked", "security"]). Governance events never carry tool arguments, the decision
note (only its length or whether there was one), or the values of changed configuration fields (only the field
names) — in particular no tokens, API keys, passwords, HEC tokens, SIEM credentials or webhook secrets.
💡 Note: Security and governance events are not tied to a gateway request, so they are sent only to the tenant-level SIEM configuration (
siemon the tenant, set throughPATCH /admin/v1/tenants/{id}). A gateway-level configuration receives inference events only —securityorgovernancein a gateway'seventslist has no effect.
⚠️ Caution:
"all"produces very high volumes for busy gateways. Use a backend with adequate throughput (Elasticsearch, Vector) and configure appropriate index retention policies.
Event payload
HTTP backends (Splunk, Elasticsearch, Vector)
All HTTP backends receive the same structured fields from request_log:
| Field | Type | Description |
|---|---|---|
id |
string | Unique request UUID |
tenant_id |
string | Tenant identifier |
gateway_id |
string | Gateway identifier |
provider |
string | LLM provider (openai, anthropic, …) |
model |
string | Model name |
status |
integer | HTTP status returned to the client |
blocked |
boolean | Whether the request was blocked |
blocked_by |
string | What blocked the request. For a guardrail block it is the name of the specific guardrail (detector) that produced the block verdict (for example safety-filter), not the literal word guardrail. For an infrastructure or policy block it is the reason category: rate_limit; ip_allowlist; a quota/budget reason (quota, trial, subscription, trial_budget, trial_user_budget, managed_budget, wallet — the tenant wallet is empty or frozen, demo_quota, user_budget — a member's personal budget cap, team_budget — a team's (department's) budget cap); a model-policy reason (plan_model_allowlist, eu_gov_model_allowlist, role_model_allowlist, local_model_block, tenant_model_block — the model is blocked for the whole tenant, agent_protection — an agent's protection level refuses that provider); a PII-policy reason (pii_protection_required, pii_media_unmaskable); or a data-processing policy reason (subprocessor_objection, inherent_search — the model searches the web on every call, native_grounding, classified_media_unscannable — a gateway carrying the classified-markings preset received media that cannot be scanned as text, gateway_disabled — an administrator disabled the gateway (kill switch), account_state — an unrecognised account-state refusal, refused fail-closed, tenant_suspended — the workspace is suspended, tenant_state_unknown — the suspension state could not be read, refused fail-closed, local_model_required — the request needed a local model and named another: a Local only project, or a spoken turn; block_reason then says which: local_only, voice, or, when the project binding could not be confirmed and the gateway refused fail-closed, indeterminate, conv_project_unresolved (the conversation's project was deleted) or agent_area_unresolved (an agent's knowledge area no longer exists), local_only_egress — a Local only turn on a local model refused at dispatch because it could not be kept inside Myra infrastructure; block_reason then says which: tenant_endpoint (the gateway points the local provider at its own endpoint, provider_base_urls.myra; nothing was sent), fleet_not_in_estate (the operator's fleet URL is outside Myra infrastructure; nothing was sent), not_in_estate (the fleet's reply could not be proven served inside Myra infrastructure and was withheld) or indeterminate (any of these while the project binding could not be confirmed)). Both Local only reasons also cover the gateway's own off-chat calls for such a project: the automatic conversation summary (meta.kind compaction; both reasons) and a raw file upload to Anthropic's Files API (meta.kind files_upload; local_model_required only). These map to the CEF event classes in Syslog / CEF format. |
block_reason |
string | Block description. For a keyword, regex, custom_pii or jailbreak block it is redacted:<type>:<12 hex>; the matched value is never forwarded to your SIEM. |
detectors_fired |
array | Names of detectors that triggered |
detector_types_fired |
array | The detector types of the detectors_fired entries, in the same order (for example jailbreak for a detector you renamed). The threat taxonomy is assigned by type. Absent when no detector fired. |
tool_result_injection_blocked |
boolean | true when an injection was found in a tool result (MCP / RAG / tool output) and the result was withheld from the model. The request itself continues. |
tool_result_injection_flagged |
boolean | true when such an injection was found in shadow (flag) mode and the result was passed through |
tool_result_injection_detector |
string | Which scanner found it: prompt_injection (Prompt Guard 2) or tool_injection_scan (keyword scan) |
meta.threat_taxonomy |
object | { "owasp": [...], "atlas": [...] }: the OWASP-LLM Top-10 and MITRE ATLAS ids of the event (see Threat taxonomy); absent when nothing maps |
guardrail_verdict |
string | Guardrail pipeline verdict: safe, unsafe, error, or indeterminate |
scrub_applied |
boolean | Whether PII was scrubbed |
pii_entities |
object | When PII was masked: the masked entity types with their counts, e.g. {"IBAN_CODE": 1, "PERSON": 1} — never a value (see Personal data masked). Absent when no typed entity was masked. |
pii_phase |
string | When PII was masked: request, response or both |
pii_guardrail_failure |
boolean | true on a block by a PII masking detector that could not run (CEF class PII_BLOCK) |
flagged_detectors_request / flagged_detectors_response |
array | Names of the detectors that only flagged the request / the response (CEF class GUARDRAIL_FLAG when nothing was blocked or masked) |
event_class |
string | The CEF event class of the record (INFERENCE, PII_SCRUB, GUARDRAIL_FLAG, GUARDRAIL_BLOCK, …) |
egress_blocked |
string | Present when the egress guard blocked a model-chosen outbound target: the matched pattern kind (email, cc, jwt, …) or guard_error (the guard failed closed) |
egress_flagged |
string | Present when the egress guard, in monitor (flag) mode, matched but allowed an outbound target: the matched pattern kind |
cost_usd |
number | Estimated inference cost |
latency_ms |
integer | End-to-end request latency |
input_tokens |
integer | Input token count |
output_tokens |
integer | Output token count |
user_id |
string | Associated user (if authenticated) |
token_label |
string | Auth token label |
ts |
integer | Unix milliseconds timestamp |
An empty detectors_fired is sent as an empty array ([]).
Splunk HEC wraps the fields under an event key with time (the event time, in seconds) and sourcetype:
{
"time": 1700000000.123,
"sourcetype": "_json",
"index": "ai-gateway",
"event": { "id": "...", "tenant_id": "...", "blocked": true }
}
Elasticsearch and Vector receive the raw fields object directly.
Governance events
Governance events (filter governance, tenant-level configuration) are not request records; each carries its own
allowlisted field set — nothing else of the underlying record is ever sent, on any backend. Every event has
event_class, governance_event, ts (RFC 3339 UTC with milliseconds, e.g. 2026-11-09T14:21:58.123Z) and
tenant_id. Decider, actor, requester, holder and owner are rendered as in the tenant view: the member's id,
Myra staff stf_<16 hex> for a Myra staff account (Myra staff where no pseudonym key is configured), or erased;
if the account cannot be looked up when the event is sent, the field is left out (the event is still sent).
actor_ip (CEF src) is sent only when the acting person is a member of your workspace — never for Myra staff.
An action taken by Myra staff through "View as User" is credited to the staff account (decided_by, resumed_by,
actor_id show Myra staff …, never the user being viewed) and carries no actor_ip; if the impersonation cannot be
read, the actor is Myra staff. Holder, owner and requester are not affected.
Ids and actors that do not fit a size limit are left out, never shortened.
Ids are strings; a numeric record id is sent as its decimal string.
event_class (governance_event) |
Fields |
|---|---|
APPROVAL_DECISION (approval_decision) |
review_item_id, gateway_id, decision (approved, rejected, expired — an approval that expired unanswered counts as rejected and has no decided_by), decided_by, holder_id (whose call was held), tool, connector_id (the connector of the held call; left out when the held calls of one hold use more than one connector, when a held call's connector cannot be read, or when the call has no connector, such as a workflow Fetch hold), agent_id, run_id, hold_reason (for example approval_required, outside_task, untrusted_egress, agent_constraint_write), approver_stage (1 = single approval or the first of a four-eyes approval, which then awaits the second; 2 = the second), four_eyes (boolean), note_len (the length of the decision note — the note itself is never sent), actor_ip |
AGENT_PAUSED (agent_paused) |
pause_event_id (the id of the pause's agent.protection_paused entry in the audit log, a decimal string; one entry per pause; left out when the database reports no id), agent_id, owner_id, signal (deny_burst, volume_spike, approval_rejections), observed (count in the window), threshold, window_s (seconds); for volume_spike also class (the tool class) and baseline_per_run |
AGENT_RESUMED (agent_resumed) |
agent_id, owner_id, resumed_by, note_present (boolean — the note itself is never sent), actor_ip |
CONFIG_APPROVAL_DECISION (config_approval_decision) |
approval_id, entity_type, entity_id, decision (approved, denied), requested_by, decided_by, actor_ip |
ADMIN_CONFIG_CHANGE (admin_config_change) |
audit_event_id (the id of the change's entry in the audit log, a decimal string; left out when the database reports no id), gateway_id (when the change is gateway-scoped), entity_type, entity_id, action (created, updated, deleted), actor_id, audit_action (the audit-log action, e.g. tenant.siem_changed), changed_fields (array of the changed field names — never their values; a changed object is listed as parent.child only when every key inside it is a lowercase identifier (a-z, 0-9, _, at most 64 bytes), otherwise — a map keyed by host names, e-mail addresses or ids — only the parent name is listed; an entry that is not a field name, or a nested part that is not such an identifier, is left out; at most 64 entries of at most 128 bytes), actor_ip |
| DELIVERY_HELD (delivery_held), DELIVERY_RELEASED (delivery_released), DELIVERY_BLOCKED (delivery_blocked) | See Delivery of results with personal data below: approval_id, run_id, agent_id, workflow_run_id, workflow_id, gateway_id, family, disposition, channel, reason, sources, where. Delivered at least once per approval_id (a delivery given back because the tenant was suspended is emitted again after the resume): consumers dedupe on approval_id. |
APPROVAL_DECISION and AGENT_PAUSED carry meta.threat_taxonomy (see Threat taxonomy); the
other classes are untagged.
Delivery of results with personal data
When an agent runs unattended (a schedule) or a workflow's Deliver step sends a result, and that result carries personal data, the source policy decides whether the result may go to its external channel (webhook, Mattermost, an e-mail recipient outside your organization). Each decision is sent once, after it has been saved:
DELIVERY_HELD(severity 3,act=held) — the delivery waits for a release (the policy level isapproval_1/approval_2). Sent when the release request is created; asking again for the same run (for a workflow: the same run and Deliver step) sends nothing.DELIVERY_RELEASED(severity 2,act=released) — an approved release passed its re-check against the current policy; the result is delivered. A workflow Deliver step that is retried after a failed send over the same release does not send it again.DELIVERY_BLOCKED(severity 4,act=blocked) — the external delivery was refused:reasonrecheck(released, but the current policy no longer permits it),release_denied,release_expired(nobody released it in time) orpolicy(the policy level does not allow external delivery, e.g.blockorinternal_only; sent when the run's outcome is recorded, once per run). For a workflow run it is sent when the Deliver step's refused outcome is first recorded (once per Deliver step; a workflow with two Deliver steps can send two). A step whose release was approved but whose re-check blocked readsrecheck; a step whose release was rejected or expired readsrelease_denied/release_expired. When a released step's send fails and its retry's re-check then blocks, the same release first sendsDELIVERY_RELEASEDand thenDELIVERY_BLOCKED(recheck): the result was released but never delivered. A released step whose destination no longer matches the released one (release_changed,invalid_release) is refused without aDELIVERY_*event; the run detail shows the failed step.
Fields (all content-free): approval_id (the release id; absent for policy), run_id and agent_id (an agent run),
workflow_run_id and workflow_id (a workflow run; then run_id and agent_id are absent; CEF workflowRunId,
workflowId), gateway_id,
family (pii), disposition (the level the decision was made at: allow, internal_only, approval_1,
approval_2, block — for DELIVERY_RELEASED and a recheck block the current level), channel (the channel
kind only: webhook, mattermost, email or other — never its URL, address, channel name or recipient),
reason (held, released, recheck, release_denied, release_expired, policy), sources (array of the source
ids the personal data came from: a connector id, web_pages, web_search, knowledge_files, a built-in tool name or
prompt; for a workflow run the sources of every step of the run) and where (array of the places: fetched host names
and tool names). A list entry is only letters, digits and
. _ : - (at most 128 bytes, at most 32 entries; anything else is left out), so no URL, e-mail address or value reaches
the SIEM. A value that is not one of the listed values is left out. An id longer than the target allows is left out, never
cut. JSON examples:
{"event_class":"APPROVAL_DECISION","governance_event":"approval_decision","ts":"2026-11-09T14:21:58.123Z",
"tenant_id":"<tenant_id>","gateway_id":"<gateway_id>","review_item_id":"<id>","decision":"approved",
"approver_stage":2,"four_eyes":true,"decided_by":"<decider_id>","holder_id":"<holder_id>",
"tool":"github.create_pull_request","connector_id":"<connector_id>","agent_id":"<id>","run_id":"<id>",
"hold_reason":"approval_required","note_len":42,"actor_ip":"198.51.100.23",
"meta":{"threat_taxonomy":{"owasp":["LLM06"],"atlas":[]}}}
{"event_class":"AGENT_PAUSED","governance_event":"agent_paused","ts":"2026-11-09T14:21:58.555Z",
"tenant_id":"<tenant_id>","pause_event_id":"4711","agent_id":"<agent_id>","owner_id":"<owner_id>",
"signal":"deny_burst","observed":12,"threshold":10,"window_s":60,
"meta":{"threat_taxonomy":{"owasp":["LLM06"],"atlas":["AML.T0053"]}}}
{"event_class":"AGENT_RESUMED","governance_event":"agent_resumed","ts":"2026-11-09T14:24:59.001Z",
"tenant_id":"<tenant_id>","agent_id":"<agent_id>","owner_id":"<owner_id>",
"resumed_by":"<admin_id>","note_present":true,"actor_ip":"198.51.100.23"}
{"event_class":"CONFIG_APPROVAL_DECISION","governance_event":"config_approval_decision","ts":"2026-11-09T14:26:40.000Z",
"tenant_id":"<tenant_id>","approval_id":"<id>","entity_type":"tenant","entity_id":"<tenant_id>",
"decision":"denied","requested_by":"<requester_id>","decided_by":"Myra staff stf_3f9a0c1d2e4b5a6c"}
{"event_class":"ADMIN_CONFIG_CHANGE","governance_event":"admin_config_change","ts":"2026-11-09T14:28:20.000Z",
"tenant_id":"<tenant_id>","audit_event_id":"4712","audit_action":"tenant.siem_changed","action":"updated",
"entity_type":"tenant","entity_id":"<tenant_id>","actor_id":"<admin_id>","actor_ip":"198.51.100.23",
"changed_fields":["events","token"]}
In the last example the tenant's SIEM token and event filter were changed: their names are listed, their values
are never sent. A SIEM target change is the audit action tenant.siem_changed; its changed_fields names every SIEM
field that changed (type, host, url, port, protocol, format, index, events, token, username,
password). Setting a target for the first time lists every field it sets, and clearing it lists every field it held.
An ADMIN_CONFIG_CHANGE is sent once per saved audit-log entry, only after the change is saved: organization settings
(including the SIEM target itself and Document AI), departments, webhook triggers, member budget caps (also when a
limit request is approved), budget resets, provider keys removed by a plan change, a member moved to another
organization, a member erased by an administrator, the organization's account group set by Myra staff, a governance
template apply, a held four-eyes change when it is applied (never when it is requested),
and the other admin configuration changes. A member's own actions (deleting or erasing their own account) are not
admin changes and are not sent. Deleting the organization itself sends nothing: its SIEM target ends with it. A refused or failed save sends nothing, and a save that is retried sends its entry
once. Splunk HEC wraps the object under event as for every event.
Held tool calls (TOOL_ACCESS_HELD)
A tool call that waits for a human's approval is sent as TOOL_ACCESS_HELD (Tool call held for approval,
severity 3, act=held, syslog severity info). TOOL_ACCESS_DENIED is used only for hard refusals and for the
final "no" of a hold. One approval id follows a hold through the stream, so a SOC can link the hold, the
human's decision and the execution:
| Class | Sev | act |
When | reason values (unchanged) |
New keys |
|---|---|---|---|---|---|
TOOL_ACCESS_HELD |
3 | held |
The call waits for a human: a new hold (tool loop, delegated sub-agent, MCP proxy, workflow), the MCP proxy's poll of a waiting hold (pending, or four-eyes awaiting_second), and the MCP proxy's "needs approval" verdict just before it opens the hold |
approval_awaiting (the hold reason is in holdReason), approval_required |
approvalId (not on the "needs approval" verdict: the hold does not exist yet), holdReason, holdState |
TOOL_ACCESS_DENIED |
4 | denied |
A hard refusal, or the end of a hold without approval | refusals: tool_policy, outside_task, consent_missing, agent_paused, param_rule, param_schema_drift, param_rules_malformed, agent_constraint, agent_constraint_malformed, agent_capability, agent_protection, pii_egress_blocked, web_exfiltration_blocked, web_pii_blocked, web_pii_mandate, web_scrub_failed, web_residency_blocked, web_turn_cap, web_address_blocked, web_domain_blocked, tool_not_offered, project_lock, egress_blocked, connector_url_blocked, approval_pending_cap, inherent_search, native_grounding, untrusted_egress, guardrail_input:pii, guardrail_input:keywords, actor_invalid, tenant_mismatch, agent_token_invalid, layer_error, record_write_failed; end of a hold: approval_rejected, approval_expired, approval_retry_rejected, approval_retry_expired, approval_retry_used; a refused retry that names another call's hold or no hold: approval_retry_mismatch, approval_retry_unknown |
approvalId on the end-of-hold reasons (not on approval_retry_mismatch / _unknown: the id the client sent is not this call's hold); guardrailFamily / guardrailWhere on guardrail_input:* (see Guardrail refusals) |
TOOL_ACCESS_ALLOWED |
1 | allowed |
The call may run | approval_approved (a held call released), default_allow (also the execution of an approved call), provider_native_search |
approvalId on approval_approved and on the execution of an approved call |
Holds are recognised by where they happen, not by the reason. The same reason string can be a hold on one path
and a refusal on another: untrusted_egress holds a connector call of an agent or workflow run that handles
untrusted content, but refuses a builtin web tool that arrives without an approval and a workflow Fetch / Connector
node that refuses untrusted content. Likewise outside_task (a hold only when the task allows escalation),
agent_constraint* and inherent_search / native_grounding. So do not classify by reason; use the class. A
"needs approval" verdict (approval_required, untrusted_egress) where no hold is opened — for example a sub-agent
call that cannot be held — is a refusal, TOOL_ACCESS_DENIED. A decision whose verdict is malformed is
TOOL_ACCESS_DENIED.
Hold reasons (holdReason / hold_reason): approval_required (an unattended agent's write or destructive
call), untrusted_egress (a run that handles untrusted content wants to send data out), outside_task (outside
the agent's task, with escalation allowed), agent_constraint_write / agent_constraint_egress (the agent's own
safety constraint asks for approval), inherent_search / native_grounding (a model that searches the web on its
own). A call held only because its tool is on the gateway's approval list carries no hold reason. Hold states
(holdState / hold_state): pending, or awaiting_second (four-eyes approval: the first approver has
approved, a second person is still needed).
The approval id is the id of the review item, which is also the rule_id (cs3) of the approval_* records,
the externalId / review_item_id of the APPROVAL_DECISION event and the
ai.myra/approval_id an MCP client receives. A SOC follows TOOL_ACCESS_HELD → APPROVAL_DECISION →
TOOL_ACCESS_ALLOWED, or → TOOL_ACCESS_DENIED on a rejection or expiry, on one id. The "needs approval" verdict
just before an MCP proxy hold is opened carries no approval id; it has the same request_id and args_sha256 as
the approval_awaiting event that follows it, which does carry it.
JSON backends (HTTP and the rfc5424 JSON) carry the same information on tool-access decisions: event_class
(TOOL_ACCESS_HELD, TOOL_ACCESS_DENIED or TOOL_ACCESS_ALLOWED), approval_id, hold_reason, hold_state, guardrail_family and guardrail_where
(each left out when empty). decision keeps the stored value: a hold is deny. A JSON consumer recognises a hold
by event_class = TOOL_ACCESS_HELD. The tool arguments are never sent.
Tags. A held call is tagged by its hold reason with the same mapping as a deny with that reason (see
Threat taxonomy): approval_required, untrusted_egress,
outside_task and agent_constraint* → LLM06 / AML.T0053; inherent_search / native_grounding and a hold
without a reason are untagged. CEF: owaspLlm / mitreAtlas; JSON: meta.threat_taxonomy.
Example: an agent run wants to open a pull request (a write tool), four-eyes approval is off. The hold, the decision and the release share the approval id (shown wrapped; on the wire each is one line):
CEF:0|Myra Security|AI Gateway|1.0|TOOL_ACCESS_HELD|Tool call held for approval|3|rt=1794222100000 dvchost=ai.myra.eu
suser=<user_id> act=held externalId=<decision id> deviceExternalId=<gateway_id> reason=approval_awaiting
cs1Label=tool cs1=github.create_pull_request cs2Label=connector_id cs2=<connector_id>
cs3Label=rule_id cs3=3f6a1c2e-9b4d-4e7a-8c21-5d0e7b9a4f13 cs4Label=tenant_id cs4=<tenant_id>
cs5Label=agent_id cs5=<agent_id> cs6Label=owner_id cs6=<owner_id> flexString1Label=root_agent_id
flexString1=<root_agent_id> flexString2Label=actor_kind flexString2=agent
approvalId=3f6a1c2e-9b4d-4e7a-8c21-5d0e7b9a4f13 holdReason=approval_required holdState=pending
owaspLlm=LLM06 mitreAtlas=AML.T0053
CEF:0|Myra Security|AI Gateway|1.0|APPROVAL_DECISION|Held tool call decided|3|rt=1794222118123 dvchost=ai.myra.eu
suser=<decider_id> act=approved externalId=3f6a1c2e-9b4d-4e7a-8c21-5d0e7b9a4f13 deviceExternalId=<gateway_id>
reason=approval_required cs1Label=tool cs1=github.create_pull_request … cn2Label=approver_stage cn2=1
flexString1Label=owasp_llm flexString1=LLM06
CEF:0|Myra Security|AI Gateway|1.0|TOOL_ACCESS_ALLOWED|Tool access allowed|1|rt=1794222119000 dvchost=ai.myra.eu
suser=<decider_id> act=allowed externalId=<decision id> deviceExternalId=<gateway_id> reason=approval_approved
cs1Label=tool cs1=github.create_pull_request cs2Label=connector_id cs2=<connector_id>
cs3Label=rule_id cs3=3f6a1c2e-9b4d-4e7a-8c21-5d0e7b9a4f13 cs4Label=tenant_id cs4=<tenant_id>
cs5Label=agent_id cs5=<agent_id> cs6Label=owner_id cs6=<owner_id> flexString1Label=root_agent_id
flexString1=<root_agent_id> flexString2Label=actor_kind flexString2=agent
approvalId=3f6a1c2e-9b4d-4e7a-8c21-5d0e7b9a4f13
The same hold and release in JSON (an HTTP backend; the rfc5424 JSON carries the same keys):
{"event_class":"TOOL_ACCESS_HELD","access_decision":true,
"id":"<decision id>","tenant_id":"<tenant_id>","gateway_id":"<gateway_id>",
"decision":"deny","reason":"approval_awaiting","rule_id":"3f6a1c2e-9b4d-4e7a-8c21-5d0e7b9a4f13",
"approval_id":"3f6a1c2e-9b4d-4e7a-8c21-5d0e7b9a4f13","hold_reason":"approval_required","hold_state":"pending",
"tool":"github.create_pull_request","connector_id":"<id>",
"agent_id":"<id>","root_agent_id":"<id>","owner_id":"<owner>",
"actor_kind":"agent","request_id":"<id>","args_sha256":"<hex>",
"meta":{"threat_taxonomy":{"owasp":["LLM06"],"atlas":["AML.T0053"]}}}
{"event_class":"TOOL_ACCESS_ALLOWED","access_decision":true,
"id":"<decision id>","tenant_id":"<tenant_id>","gateway_id":"<gateway_id>",
"decision":"allow","reason":"approval_approved","rule_id":"3f6a1c2e-9b4d-4e7a-8c21-5d0e7b9a4f13",
"approval_id":"3f6a1c2e-9b4d-4e7a-8c21-5d0e7b9a4f13",
"tool":"github.create_pull_request","connector_id":"<id>",
"agent_id":"<id>","root_agent_id":"<id>","owner_id":"<owner>",
"user_id":"<decider>","actor_kind":"agent","request_id":"<id>","args_sha256":"<hex>"}
On a rejection or expiry, APPROVAL_DECISION (act=rejected / expired) is followed by TOOL_ACCESS_DENIED
with reason=approval_rejected / approval_expired and the same approvalId. MCP proxy: the first event is the
"needs approval" verdict (TOOL_ACCESS_HELD, reason=approval_required, no approvalId), then the
approval_awaiting hold with the id (if the hold cannot be opened, for example because the token already has the
maximum of waiting holds, a TOOL_ACCESS_DENIED such as approval_pending_cap follows instead); each poll of the
waiting hold is one more TOOL_ACCESS_HELD
(reason=approval_required, the polled approvalId, holdState). With four-eyes approval, a poll after the first
approval has holdState=awaiting_second, and the second approval is a second APPROVAL_DECISION
(approver_stage=2). The execution of the approved call is TOOL_ACCESS_ALLOWED reason=default_allow with
rule_id approval:approved:<approval id> and the same approvalId.
What changed for existing consumers. A hold used to arrive as
TOOL_ACCESS_DENIED|Tool access denied|4 act=denied (syslog severity warning); it now arrives as
TOOL_ACCESS_HELD|Tool call held for approval|3 act=held (syslog severity info). A rule that alerts on
TOOL_ACCESS_DENIED with reason=approval_required or reason=approval_awaiting must switch to
TOOL_ACCESS_HELD. Nothing else changes: every existing CEF key, label and value format (reason, cs1–cs6,
flexString1Label=root_agent_id, flexString2Label=actor_kind, externalId, deviceExternalId, suser), the
reason strings, the access decisions API and the default delivery set
stay as they were. The new keys are additive and left out when empty.
Guardrail refusals (guardrail_input)
A tool call refused by a source's source policy because of what it would send (reason guardrail_input:pii or guardrail_input:keywords, rule_id source_policy:<family>.input:<level>) is a hard refusal: TOOL_ACCESS_DENIED, severity 4, act=denied, never a hold. It carries two additive keys:
| CEF key | JSON key | Value |
|---|---|---|
guardrailFamily |
guardrail_family |
pii or keywords |
guardrailWhere |
guardrail_where |
The value-free place of the finding: query (a web-search query), tool_args:<tool> (the arguments of the named tool call) or url:<host> (a page fetch; the host only, never the path or query string) |
Both keys are sent together or not at all: on any other decision, and on a refusal whose place has no such form, both are left out. A value outside these forms is never sent (the event goes out without both keys). No personal-data value, keyword or pattern match and no tool argument is ever sent; the same two values are stored on the access decision.
CEF:0|Myra Security|AI Gateway|1.0|TOOL_ACCESS_DENIED|Tool access denied|4|rt=1794222100000 dvchost=ai.myra.eu
act=denied externalId=9123 reason=guardrail_input:pii cs1Label=tool cs1=crm.lookup
cs3Label=rule_id cs3=source_policy:pii.input:block guardrailFamily=pii guardrailWhere=tool_args:crm.lookup
Syslog wire format
Every syslog event is one RFC 5424 syslog message — both formats share the same header, and
format only chooses the payload (MSG):
<PRI>1 TIMESTAMP HOSTNAME APP-NAME - - - MSG
<131>1 2026-10-12T05:57:18.123Z ai.myra.eu myra-ai-gateway - - - CEF:0|Myra Security|AI Gateway|1.0|IP_BLOCKED|…
| Header field | Value |
|---|---|
PRI |
Facility local0 (16). Severity follows the event: err (3) for a block (CEF severity 7), warning (4) for PII scrub, egress flag/guard error and security events (CEF severity 4–6), info (6) for a normal inference request. So <131>, <132> or <134>. |
TIMESTAMP |
The event time (the request's ts), UTC with milliseconds, e.g. 2026-10-12T05:57:18.123Z. If the event carries no usable time, the send time. |
HOSTNAME |
The host name of your deployment's public address (e.g. ai.myra.eu). Every site of a multi-site deployment reports this same name — internal node names are not exposed. - if it cannot be determined. |
APP-NAME |
myra-ai-gateway |
PROCID, MSGID, STRUCTURED-DATA |
- (not used) |
MSG |
The CEF record (format: cef) or a JSON object (format: rfc5424), UTF-8 without a byte-order mark. |
Framing. Over UDP each event is one datagram. Over TCP and TLS each message is
octet-counted per RFC 6587 §3.4.1 (<length> <message>, the length in bytes, no trailing newline —
the framing RFC 5425 requires for syslog over TLS). Your receiver must accept octet-counted framing:
rsyslog (imtcp), syslog-ng (syslog() source), Vector (syslog source) and the Enginsight Event
Relay (format RFC6587) do. A receiver that only splits TCP streams on newlines (for example a
plain TCP syslog listener in QRadar or Splunk) should use UDP.
Size. One message is at most 8192 bytes (rsyslog's default maximum). A normal event is far smaller, but set your receiver's maximum syslog message size to at least 8192 bytes — some receivers accept less over UDP by default (in QRadar, check Max UDP Syslog Payload Length in the system settings) and cut longer messages. An event with unusually long field values is sent with every value shortened to 64 bytes and lists shortened to 8 entries rather than being split or cut mid-record.
What is sanitised. Every field value is untrusted input (request path, client address, model
and detector names, block reasons). Before it is written: invalid UTF-8 is replaced with U+FFFD;
control characters and Unicode line breaks (CR, LF, NUL, TAB, NEL, U+2028, U+2029) become a space,
so no value can end the record or start a second one; values longer than their limit are
shortened at a character boundary — except identifiers (request, gateway, tenant and user ids,
client_request_id) and list entries, which are left out instead of shortened; leading and
trailing spaces are removed, and a value that is
blank after cleaning is left out. A value of the wrong type (for example an object where a string
is expected) is left out, exactly like a missing value; so is a number outside its range
(status must be an integer 100–599, cost_usd non-negative, token counts and latency_ms
non-negative integers) — in both the CEF and the JSON format. A count is sent digit for digit up to
9007199254740991; a larger one is left out rather than rounded. In the JSON format every number is written exactly or the value is left out, never silently rounded.
Syslog / CEF format
The CEF record follows the ArcSight Common Event Format. Extension values escape \ as \\ and
= as \= (a | is literal in the extension); keys with no value are left out.
CEF:0|Myra Security|AI Gateway|1.0|GUARDRAIL_BLOCK|Request blocked by guardrail|7|rt=1791784638123
dvchost=ai.myra.eu src=198.51.100.23 suser=<user_id> act=blocked externalId=<request id>
deviceExternalId=<gateway_id> destinationServiceName=openai reason=S1
cs1Label=blocked_by cs1=safety-filter cs2Label=detectors cs2=safety-filter
cs3Label=guardrail_verdict cs3=unsafe cs4Label=tenant_id cs4=<tenant_id> cs5Label=model cs5=gpt-4o
cfp1Label=cost_usd cfp1=0.001 flexString1Label=owasp_llm flexString1=LLM05
flexString2Label=atlas flexString2=AML.T0048 cn1Label=status cn1=403
(Shown wrapped; on the wire it is one line. A content-safety block — the S-codes in reason — is tagged LLM05 /
AML.T0048, see Threat taxonomy.)
| CEF key | Content | Limit |
|---|---|---|
rt |
Event time, Unix milliseconds | — |
dvchost |
Deployment host name (as the syslog HOSTNAME) — left out if longer than 100 bytes |
100 |
src |
Client IPv4 address | — |
c6a2 (c6a2Label=Source IPv6 Address) |
Client IPv6 address (CEF src is IPv4-only; an IPv4-mapped client, dotted or hex, is reported as its IPv4 address in src) |
— |
suser |
User id (tool-access decisions: the rendered acting user; governance events: the rendered decider / actor, see below) | 1023 |
act |
blocked, flagged (egress monitor mode, flagged tool-result injection, GUARDRAIL_FLAG), scrubbed, allowed, denied (security event, tool-access deny, denied config change), held (held tool call); governance: approved, rejected, expired, paused, resumed, created, updated, deleted, held / released / blocked (delivery of results with personal data) |
63 |
externalId |
Gateway request id (id) — left out if longer than 40 bytes |
40 |
deviceExternalId |
Gateway id — left out if longer than 255 bytes | 255 |
destinationServiceName |
LLM provider | 1023 |
reason |
Human-readable block reason (block_reason) |
1023 |
cs1 blocked_by |
What blocked the request (see blocked_by above); on TOOL_RESULT_INJECTION: cs1Label=detector (prompt_injection or tool_injection_scan); on GUARDRAIL_FLAG: cs1Label=flagged_by (the detectors that flagged the request, comma-separated) |
4000 |
cs2 detectors |
Detectors that fired, comma-separated | 4000 |
cs3 guardrail_verdict |
safe, unsafe, error, indeterminate |
4000 |
cs4 tenant_id |
Tenant id | 4000 |
cs5 model |
Model name | 4000 |
cs6 egress |
Egress-guard matched pattern kind (e.g. email); on PII_SCRUB: cs6Label=pii_entities (see Personal data masked) |
4000 |
piiPhase |
PII_SCRUB only: where the personal data was masked — request, response or both |
16 |
cn1 status |
HTTP status returned to the client (100–599) | — |
cfp1 cost_usd |
Estimated cost in USD, fixed-point | — |
flexString1 owasp_llm |
Matched OWASP-LLM Top-10 categories, comma-separated (every class except TOOL_ACCESS_*) |
1023 |
flexString2 atlas |
Matched MITRE-ATLAS techniques, comma-separated (every class except TOOL_ACCESS_*) |
1023 |
owaspLlm |
TOOL_ACCESS_* only: matched OWASP-LLM Top-10 categories, comma-separated; left out when untagged |
1023 |
mitreAtlas |
TOOL_ACCESS_* only: matched MITRE-ATLAS techniques, comma-separated; left out when untagged |
1023 |
approvalId |
TOOL_ACCESS_* only: the approval id of a hold (see Held tool calls) — on TOOL_ACCESS_HELD (except the "needs approval" verdict), on TOOL_ACCESS_DENIED approval_rejected / approval_expired / approval_retry_rejected / _expired / _used, on TOOL_ACCESS_ALLOWED approval_approved and on the execution of an approved call; left out if longer than 36 bytes |
36 |
holdReason |
TOOL_ACCESS_HELD only: why the call is held |
64 |
holdState |
TOOL_ACCESS_HELD with an approval id only: pending or awaiting_second |
16 |
guardrailFamily |
TOOL_ACCESS_DENIED guardrail_input:* only: pii or keywords (see Guardrail refusals) |
16 |
guardrailWhere |
TOOL_ACCESS_DENIED guardrail_input:* only: query, tool_args:<tool> or url:<host>; left out, never shortened, when longer than the limit |
300 |
cn2, cn3 |
Governance events: counts (labels per class, see Governance events in CEF) | — |
cfp2 baseline_per_run |
AGENT_PAUSED with volume_spike: the agent's normal calls per run |
— |
Limits are the CEF specification's maximum lengths, applied in bytes; a longer value is shortened at a character boundary (identifiers are left out instead, so a shortened id can never be correlated wrongly). In the rare oversize case (see Size above) every limit drops to 64 bytes.
The client address comes from X-Forwarded-For
src / c6a2 is the left-most X-Forwarded-For address the gateway received. Behind the Myra
CDN this is the real client; a request that reaches the gateway another way can set it to any
well-formed address. Do not use it alone to block an address automatically. A value that is not
a valid IP address is left out.
The CEF event class (5th field) and severity (7th field) reflect what happened to the
request. Every request the gateway blocks carries severity 7 and its own block class — a
blocked request is never reported as INFERENCE. Egress-guard events are a separate family
(they set no blocked_by, so they are not a blocked request in the table above) and carry their
own EGRESS_* classes:
| Event class | Severity | Meaning |
|---|---|---|
GUARDRAIL_BLOCK |
7 | A guardrail detector blocked the request (cs1/blocked_by is the detector name). |
PII_BLOCK |
7 | A PII policy blocked the request (mandatory masking required, or unmaskable media), or a PII masking detector (custom_pii, pii_protector, presidio) could not run and the request was refused rather than sent unmasked (cs1/blocked_by is the detector name, reason e.g. guardrail_unavailable:<name>), or the PII scan of stored content or tool labels could not run. The compliance report counts the same requests under PII gate (blocked_pii_gate). |
RATE_LIMIT |
7 | The request exceeded a configured rate limit. |
IP_BLOCKED |
7 | The client IP is not on the gateway allowlist. |
QUOTA_EXCEEDED |
7 | A budget or quota was exhausted (per-token, per-user, per-team, tenant, wallet, trial, subscription, managed budget, or the demo prompt allowance). |
MODEL_BLOCKED |
7 | The requested model is not permitted (plan / EU-Gov / role allowlist, or disabled on the gateway or for the whole tenant). |
POLICY_BLOCK |
7 | A data-processing policy blocked the request (a sub-processor objection, or a model with built-in web search or grounding on a run where this is refused, media that cannot be scanned for classified markings, a gateway an administrator disabled, or a non-local model refused in a Local only project or on a spoken turn — local_model_required, or a Local only turn that could not be kept inside Myra infrastructure — local_only_egress). |
EGRESS_BLOCK |
7 | The egress guard blocked a model-chosen outbound target carrying unattributed PII/secrets (attempted exfiltration). |
EGRESS_GUARD_ERROR |
5 | The egress guard failed closed on an internal error; the request was refused. |
EGRESS_FLAGGED |
5 | The egress guard, in monitor (flag) mode, detected an outbound match but allowed the request. |
PII_SCRUB |
5 | Personal data was masked in the request, the response or both; the request itself was not blocked. Carries the entity types and counts (see Personal data masked). |
GUARDRAIL_FLAG |
4 | A guardrail detected something and only flagged it (a detector with the flag action, a flagging Presidio detector): the request was neither blocked nor masked. cs1Label=flagged_by names the detectors. A request that was also blocked or masked keeps the block or PII_SCRUB class. |
INFERENCE |
1 | A normal inference request: nothing was blocked, masked or flagged. |
AUTH_FAILURE / ACCESS_DENIED |
4 | An authentication or authorization failure (see below). |
TOOL_RESULT_INJECTION |
7 / 5 | An injection was found in a tool result: 7 = the result was withheld (act=blocked), 5 = shadow mode, passed through (act=flagged). A request that was itself blocked keeps its block class. |
TOOL_ACCESS_DENIED |
4 | The access layer refused a tool call, or a hold ended without approval (see Event filter). |
TOOL_ACCESS_HELD |
3 | A tool call waits for a human's approval (see Held tool calls). |
TOOL_ACCESS_ALLOWED |
1 | The access layer allowed a tool call. |
APPROVAL_DECISION |
3 / 4 | A held tool call was decided: 3 = approved, 4 = rejected or expired. |
AGENT_PAUSED |
6 | The agent protection paused an agent automatically. |
AGENT_RESUMED |
3 | An administrator resumed a paused agent. |
CONFIG_APPROVAL_DECISION |
3 / 4 | A held configuration change was decided: 3 = approved, 4 = denied. |
ADMIN_CONFIG_CHANGE |
3 | An administrator created, changed or deleted configuration. |
DELIVERY_HELD |
3 | An agent or workflow result with personal data waits for a release before it goes to an external channel. |
DELIVERY_RELEASED |
2 | A released agent or workflow result passed its re-check and is delivered to its external channel. |
DELIVERY_BLOCKED |
4 | An agent or workflow result with personal data was not delivered to its external channel. |
Personal data masked (PII_SCRUB)
A PII_SCRUB event says which kinds of personal data were masked, how many of each, and where:
CEF:0|Myra Security|AI Gateway|1.0|PII_SCRUB|PII scrubbed|5|rt=1794222600000 dvchost=ai.myra.eu
src=198.51.100.23 suser=<user_id> act=scrubbed externalId=<request id> deviceExternalId=<gateway_id>
destinationServiceName=openai reason=PERSON,IBAN_CODE cs2Label=detectors cs2=pii
cs3Label=guardrail_verdict cs3=safe cs4Label=tenant_id cs4=<tenant_id> cs5Label=model cs5=gpt-4o
cs6Label=pii_entities cs6=IBAN_CODE:1,PERSON:1 piiPhase=request
flexString1Label=owasp_llm flexString1=LLM02 flexString2Label=atlas flexString2=AML.T0057 cn1Label=status cn1=200
cs6pii_entities:TYPE:countpairs, sorted by type, comma-separated. The types are the detector's entity types (Presidio'sPERSON,IBAN_CODE,EMAIL_ADDRESS, …, the German recognizers' types,MANUALfor a span the user masked by hand,CUSTOM_KEYWORDfor a personal keyword). A count is the number of masked occurrences.piiPhase:request(masked before the model saw it),response(masked in the model's answer) orboth. Putting the original values back into the answer (the reversible masking of the PII protector) is not a second masking and does not count asresponse.reasonis the entity list of the masking, also when the answer later had its values put back (before this change it then readpii_token_restore).- Values are never sent. Only the types, the counts and the phase leave the gateway. A type that is not an
upper-case name of at most 32 characters (
A–Zand_only — no digits, so no number can pass as a type) is reported asOTHER; at most 33 types are sent per event, further types are counted underOTHER. - A masking without typed entities (a keyword or regex detector with the
scrubaction) carriespiiPhasebut nocs6.
On JSON backends (HTTP and the rfc5424 JSON) the same values are pii_entities (an object, e.g.
{"IBAN_CODE": 1, "PERSON": 1}) and pii_phase. The per-span entity list of the gateway's internal record
(scrub_entities) is not sent; pii_entities is its validated summary. Every JSON event also carries event_class, the CEF class
(PII_SCRUB, GUARDRAIL_FLAG, INFERENCE, …).
A security event uses a distinct CEF class — AUTH_FAILURE (or ACCESS_DENIED for an
access-denied / login-denied action) — and its own field set: rt, dvchost, src (or c6a2) =
the actor's address, suser=<user_id>, act=denied, request=<path>, cs1Label=action,
cs4Label=tenant_id, cn1Label=status. Security events are sent only for failures (HTTP status
400 or higher) that belong to a tenant.
A tool-access decision event carries externalId (decision id), deviceExternalId (gateway
id), reason, cs1Label=tool, cs2Label=connector_id, cs3Label=rule_id, cs4Label=tenant_id,
cs5Label=agent_id, cs6Label=owner_id, flexString1Label=root_agent_id and
flexString2Label=actor_kind, with act=denied, act=held or act=allowed, and, for a hold, approvalId,
holdReason and holdState (see Held tool calls), and, for a source-policy refusal,
guardrailFamily and guardrailWhere (see Guardrail refusals). cs6 (owner) and suser (acting user) are
rendered alike: the member's id, Myra staff stf_<16 hex> (Myra staff without a pseudonym key) for a Myra staff
account, or erased; each is left out if the stored record cannot be read when the event is sent. A tagged deny
(see Threat taxonomy) also carries owaspLlm=<ids> and mitreAtlas=<ids>
— flexString1 / flexString2 keep root_agent_id / actor_kind exactly as before, so existing parsers are
unaffected. An allow and an untagged deny carry neither key.
CEF:0|Myra Security|AI Gateway|1.0|TOOL_ACCESS_DENIED|Tool access denied|4|rt=1794222700000 dvchost=ai.myra.eu
suser=<user_id> act=denied externalId=<decision id> deviceExternalId=<gateway_id> reason=tool_policy
cs1Label=tool cs1=github.create_pull_request cs2Label=connector_id cs2=<connector_id> cs3Label=rule_id cs3=<rule_id>
cs4Label=tenant_id cs4=<tenant_id> cs5Label=agent_id cs5=<agent_id> cs6Label=owner_id cs6=<owner_id>
flexString1Label=root_agent_id flexString1=<root_agent_id> flexString2Label=actor_kind flexString2=agent
owaspLlm=LLM06 mitreAtlas=AML.T0053
Where the tags sit. When the gateway classifies an event against the threat taxonomy, the CEF record carries
flexString1Label=owasp_llm (the matched OWASP-LLM Top-10 categories, comma-joined) and flexString2Label=atlas
(the matched MITRE-ATLAS techniques) — on every class except TOOL_ACCESS_DENIED / TOOL_ACCESS_ALLOWED, which
carry them in owaspLlm / mitreAtlas (their flexString keys are taken). An empty list is left out (an
APPROVAL_DECISION has no ATLAS id, so no flexString2). On JSON backends (HTTP and the rfc5424 JSON) the same
information is under meta.threat_taxonomy ({ "owasp": [...], "atlas": [...] }) on every class. See
Compliance for the aggregate report crosswalk.
A tool-result injection event (TOOL_RESULT_INJECTION) carries the inference field set with
cs1Label=detector:
CEF:0|Myra Security|AI Gateway|1.0|TOOL_RESULT_INJECTION|Injection in tool result withheld|7|rt=1794222600000
dvchost=ai.myra.eu src=198.51.100.23 suser=<user_id> act=blocked externalId=<request id>
deviceExternalId=<gateway_id> destinationServiceName=openai cs1Label=detector cs1=prompt_injection
cs3Label=guardrail_verdict cs3=unsafe cs4Label=tenant_id cs4=<tenant_id> cs5Label=model cs5=gpt-4o
flexString1Label=owasp_llm flexString1=LLM01 flexString2Label=atlas flexString2=AML.T0051 cn1Label=status cn1=200
The flagged variant has severity 5, Injection in tool result flagged and act=flagged. On the HTTP backends the
event is the full request record with tool_result_injection_blocked (or _flagged) and
meta.threat_taxonomy.
Governance events in CEF
| Class | CEF keys |
|---|---|
APPROVAL_DECISION |
suser decider (absent on expiry), src decider address, act decision, externalId review item id, deviceExternalId gateway, reason hold reason, cs1 tool, cs2 connector_id (when known, see above), cs3 run_id, cs4 tenant_id, cs5 agent_id, cs6 holder_id, cn2 approver_stage, cn3 note_len, flexString1 owasp_llm |
AGENT_PAUSED |
act=paused, externalId pause event id (the audit log entry id), reason signal, cs1 class (volume_spike), cs3 window_s, cs4 tenant_id, cs5 agent_id, cs6 owner_id, cn2 observed, cn3 threshold, cfp2 baseline_per_run (volume_spike), flexString1 owasp_llm, flexString2 atlas |
AGENT_RESUMED |
suser resumed by, src, act=resumed, cs3 note_present (true / false), cs4 tenant_id, cs5 agent_id, cs6 owner_id |
CONFIG_APPROVAL_DECISION |
suser decider, src, act decision, externalId approval id, cs1 entity_type, cs2 entity_id, cs4 tenant_id, cs6 requester_id |
ADMIN_CONFIG_CHANGE |
suser actor, src, act action, externalId audit event id (the audit log entry id), deviceExternalId gateway (gateway-scoped changes), cs1 entity_type, cs2 entity_id, cs3 changed_fields (comma-joined names, only whole names within the limit), cs4 tenant_id, cs5 audit_action |
DELIVERY_HELD, DELIVERY_RELEASED, DELIVERY_BLOCKED |
act (held, released, blocked), externalId release id, deviceExternalId gateway, reason, cs1 family, cs2 disposition, cs3 run_id, cs4 tenant_id, cs5 agent_id, cs6 channel, workflowRunId / workflowId (a workflow run), sources and where (comma-joined, only whole entries within the limit); no suser / src |
externalId is left out if longer than 40 bytes; any other id or actor (suser, cs2–cs6 carrying an id) that does
not fit its limit is left out too, never shortened. Examples (shown wrapped; one line on the wire):
CEF:0|Myra Security|AI Gateway|1.0|APPROVAL_DECISION|Held tool call decided|3|rt=1794222118123 dvchost=ai.myra.eu
src=198.51.100.23 suser=<decider_id> act=approved externalId=<review_item_id> deviceExternalId=<gateway_id>
reason=approval_required cs1Label=tool cs1=github.create_pull_request cs2Label=connector_id cs2=<connector_id>
cs3Label=run_id cs3=<run_id> cs4Label=tenant_id cs4=<tenant_id> cs5Label=agent_id cs5=<agent_id>
cs6Label=holder_id cs6=<holder_id> cn2Label=approver_stage cn2=2 cn3Label=note_len cn3=42
flexString1Label=owasp_llm flexString1=LLM06
CEF:0|Myra Security|AI Gateway|1.0|AGENT_PAUSED|Agent paused by protection|6|rt=1794222118555 dvchost=ai.myra.eu
act=paused externalId=4711 reason=deny_burst cs3Label=window_s cs3=60 cs4Label=tenant_id cs4=<tenant_id>
cs5Label=agent_id cs5=<agent_id> cs6Label=owner_id cs6=<owner_id> cn2Label=observed cn2=12
cn3Label=threshold cn3=10 flexString1Label=owasp_llm flexString1=LLM06 flexString2Label=atlas flexString2=AML.T0053
CEF:0|Myra Security|AI Gateway|1.0|AGENT_RESUMED|Agent resumed|3|rt=1794222299001 dvchost=ai.myra.eu
src=198.51.100.23 suser=<admin_id> act=resumed cs3Label=note_present cs3=true cs4Label=tenant_id cs4=<tenant_id>
cs5Label=agent_id cs5=<agent_id> cs6Label=owner_id cs6=<owner_id>
CEF:0|Myra Security|AI Gateway|1.0|CONFIG_APPROVAL_DECISION|Held config change decided|4|rt=1794222400000
dvchost=ai.myra.eu suser=Myra staff stf_3f9a0c1d2e4b5a6c act=denied externalId=<approval_id>
cs1Label=entity_type cs1=tenant cs2Label=entity_id cs2=<tenant_id> cs4Label=tenant_id cs4=<tenant_id>
cs6Label=requester_id cs6=<requester_id>
CEF:0|Myra Security|AI Gateway|1.0|ADMIN_CONFIG_CHANGE|Admin configuration change|3|rt=1794222500000
dvchost=ai.myra.eu src=198.51.100.23 suser=<admin_id> act=updated externalId=4712
cs1Label=entity_type cs1=tenant cs2Label=entity_id cs2=<tenant_id>
cs3Label=changed_fields cs3=events,token cs4Label=tenant_id cs4=<tenant_id>
cs5Label=audit_action cs5=tenant.siem_changed
(The CONFIG_APPROVAL_DECISION example was decided by Myra staff: no src is sent for staff.)
Threat taxonomy (OWASP LLM / MITRE ATLAS)
Every tag is assigned in one place by the gateway, from what actually happened — detectors are mapped by their type, never by the name you gave them, so a renamed detector keeps its tag. Signals with no fitting threat class are deliberately left untagged.
| Signal | OWASP LLM | MITRE ATLAS | Why |
|---|---|---|---|
Detector type jailbreak |
LLM01 | AML.T0051, AML.T0054 | Prompt injection / jailbreak attempt. |
Detector type gibberish |
LLM01 | AML.T0054 | Obfuscated input used to slip past filters. |
Detector type prompt_injection (Prompt Guard 2) |
LLM01 | AML.T0051 | Direct prompt-injection classifier. |
Detector type prompt_guard / content-safety S-codes in reason |
LLM05 (+ LLM06 for S14) | AML.T0048 (+ AML.T0053 for S14) | Harmful output categories; S14 is tool / code abuse. |
Detector type contains_code |
LLM05 | — | Improper output handling; no adversary technique asserted. |
Detector types presidio, pii_protector, custom_pii; PII gate blocks |
LLM02 | AML.T0057 | Sensitive information disclosure. |
local_model_required with block_reason local_only (a Local only project refused a non-local model) |
LLM02 | AML.T0057 | The project's data would have left Myra infrastructure; same ids as the PII gate. The other local_model_required reasons (a spoken turn, an unconfirmable project binding) are fail-closed refusals with no disclosure attempt and stay untagged. local_only_egress (a tenant endpoint or a fleet that served outside Myra infrastructure) is a configuration or operations fault, not a user attempt, and is untagged too. |
Egress guard block / flag (not guard_error) |
LLM02, LLM05 | AML.T0024, AML.T0057 | Exfiltration through a model-chosen target. |
| Rate limit, quota and budget blocks | LLM10 | AML.T0034 | Unbounded consumption / cost harvesting. |
TOOL_RESULT_INJECTION (withheld or flagged) |
LLM01 | AML.T0051 | Indirect prompt injection through tool, RAG or MCP output. |
Tool denial tool_policy, approval_required, untrusted_egress, outside_task, consent_missing, agent_paused, agent_constraint*; a held tool call (TOOL_ACCESS_HELD) by the same hold reason |
LLM06 | AML.T0053 | Excessive agency: the agent tried a tool it may not use (yet). AML.T0053 (LLM Plugin Compromise) is the technique already used for S14 tool abuse, so agent tool misuse carries one id across the stream. |
Tool denial pii_egress_blocked, web_exfiltration_blocked, web_pii_blocked |
LLM02 | AML.T0057 | PII in tool arguments; same ids as the PII gate. |
Tool denial layer_error, record_write_failed, provider_native_search, any other reason; every allow |
— | — | Operational or policy refusals with no threat class (as EGRESS_GUARD_ERROR). |
AGENT_PAUSED deny_burst, approval_rejections |
LLM06 | AML.T0053 | The excessive-agency protection fired. |
AGENT_PAUSED volume_spike |
LLM06, LLM10 | AML.T0053, AML.T0034 | Also unbounded consumption / cost harvesting. |
APPROVAL_DECISION |
LLM06 | — | The human-in-the-loop control for excessive agency; no adversary technique is asserted, so no ATLAS id. |
A refusal because a detector could not run (reason guardrail_unavailable:…, guardrail_doc_too_large:…, or the detector is not configured) |
— | — | Nothing was detected; the detector's name is not read as a detection. A PII masking detector's outage is still PII_BLOCK. |
Detector types keyword, regex, language, json_schema; IP allowlist and plan-model refusals |
— | — | Your own patterns or entitlement / access rules: mapping them to a threat class would be a guess. |
AGENT_RESUMED, CONFIG_APPROVAL_DECISION, ADMIN_CONFIG_CHANGE, DELIVERY_HELD, DELIVERY_RELEASED, DELIVERY_BLOCKED, AUTH_FAILURE, ACCESS_DENIED |
— | — | Admin-plane actions and authentication / authorisation failures: no OWASP-LLM or ATLAS class fits; tagging them would be a fabrication. |
The compliance report's per-category crosswalk lists the union of these ids per category.
An egress-guard event additionally carries cs6Label=egress cs6=<kind> (the matched pattern
kind, e.g. email) — present on any record carrying a real matched pattern (egress_flagged, or
egress_blocked other than the guard_error marker), so the outbound-exfil signal survives even
when a co-occurring guardrail block wins the event class. A fail-closed EGRESS_GUARD_ERROR event
carries no cs6 (there is no matched pattern to report).
Syslog / RFC 5424 (JSON) format
With format: rfc5424 the MSG is a JSON object with a fixed set of fields, named as in the
HTTP backends record: id, ts,
tenant_id, gateway_id, provider, model, status, blocked, blocked_by, block_reason,
detectors_fired, guardrail_verdict, scrub_applied, egress_blocked, egress_flagged,
cost_usd, latency_ms, input_tokens, output_tokens, cached, interactive, user_id, token_label,
client_ip, client_request_id, event_class, pii_entities, pii_phase (the last two when PII was masked)
and meta.threat_taxonomy; a security event carries ts,
security_event, action, actor_ip, user_id, tenant_id, path and status; a tool-access
decision carries access_decision (true), event_class, decision, reason, tool, connector_id, rule_id,
agent_id, root_agent_id, owner_id, actor_kind, request_id, args_sha256, approval_id, hold_reason,
hold_state (the last three when set) and, when tagged, meta.threat_taxonomy. A request record also carries tool_result_injection_blocked, tool_result_injection_flagged
and tool_result_injection_detector when set. A governance event carries exactly the fields of its class listed in
Governance events, with the same names and the RFC 3339 ts. client_ip /
actor_ip is the client's (or actor's) IP address, client_request_id the caller's X-Request-Id,
cached whether the response came from the cache. Strings are at most 1024 bytes;
detectors_fired and each taxonomy list at most 64 entries of at most 128 bytes (a longer entry
is left out, never shortened). ts and client_ip / actor_ip carry the
same validated values as the header and the CEF record (an address that is not a valid IP is left
out). The prompt and response bodies and the rest of meta are not sent over syslog — use an
HTTP backend if you need the full record.
<131>1 2026-10-12T05:57:18.123Z ai.myra.eu myra-ai-gateway - - - {"id":"…","ts":1791784638123,"tenant_id":"…","blocked":true,"blocked_by":"ip_allowlist","detectors_fired":[],"status":403,…}
Per-backend configuration examples
Splunk HEC
{
"siem": {
"type": "splunk_hec",
"url": "https://splunk.corp.com:8088/services/collector/event",
"token": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"index": "ai-gateway-prod",
"events": ["blocked", "guardrail"]
}
}
Elasticsearch
{
"siem": {
"type": "elasticsearch",
"url": "https://es.corp.com:9200",
"index": "aig-logs",
"username": "aig-writer",
"password": "s3cr3t",
"events": ["blocked", "scrubbed"]
}
}
Recommended index mapping: use keyword for string fields and date with format: epoch_millis for the ts field.
Vector
{
"siem": {
"type": "vector",
"url": "http://vector.svc:8080",
"token": "<your-vector-token>",
"events": ["all"]
}
}
Vector config (excerpt):
[sources.aig]
type = "http_server"
address = "0.0.0.0:8080"
encoding.codec = "json"
# Only when the SIEM config carries a "token": refuse requests without the same bearer token.
auth.strategy = "bearer"
auth.token = "<your-vector-token>"
[sinks.loki]
type = "loki"
inputs = ["aig"]
endpoint = "http://loki:3100"
Syslog / CEF (UDP)
{
"siem": {
"type": "syslog",
"host": "siem.corp.com",
"port": 514,
"protocol": "udp",
"format": "cef",
"events": ["blocked"]
}
}
Syslog / CEF over UDP (QRadar, IBM)
QRadar's syslog listener accepts UDP on port 514 and detects CEF in the message. Use UDP: a plain TCP syslog listener that only splits on newlines does not accept octet-counted framing.
{
"siem": {
"type": "syslog",
"host": "qradar.corp.com",
"port": 514,
"protocol": "udp",
"format": "cef",
"events": ["blocked", "guardrail"]
}
}
Enginsight
See Connect Enginsight SIEM for the Event Relay setup and the matching gateway configuration.
Syslog over TLS (encrypted)
Encrypts the syslog stream in transit. Uses the TCP transport with a TLS handshake, conventionally
on port 6514.
{
"siem": {
"type": "syslog",
"host": "siem.corp.com",
"port": 6514,
"protocol": "tls",
"format": "rfc5424",
"events": ["blocked", "guardrail"]
}
}
TLS certificate requirements
The gateway verifies the receiver's certificate against the public CA trust store, so host
must be a hostname (not a bare IP) that matches a publicly-trusted certificate — a
bare IP or a self-signed / private-CA certificate will fail verification and nothing is
delivered (the gateway never sends events over an unauthenticated channel). Support for
operator-supplied CA / self-signed certificates is tracked separately.
Framing is RFC 6587 octet counting (as RFC 5425 requires for syslog over TLS) — see Syslog wire format.
Configuring gateway-level SIEM integration
Use gateway-level SIEM integration to give one gateway its own SIEM target. It replaces the organisation's SIEM streaming for this gateway's AI request events. Sign-in, tool-access and governance events always go to the organisation's target.
Before you begin, ensure the following conditions are met:
- ☑ You are logged in as a user who can manage gateways (a
tenant_adminwith theGATEWAYS_MANAGEpermission, or a platformadmin).
The SIEM for this gateway section on the gateway settings page.
Proceed as follows to configure gateway-level SIEM integration:
- Open Organisation → AI setup → Gateways (user-block menu at the bottom of the left sidebar).
- The Gateways list opens.
- Click on the gateway.
- The gateway page opens on the Endpoint & keys tab.
- Click on the Edit button in the Gateway card.
- The gateway settings page opens (
…/gateways/<gateway>/settings).
- The gateway settings page opens (
- Open the Notifications tab, then scroll to the SIEM for this gateway section.
- Select a backend in the drop-down list SIEM type: Splunk HTTP Event Collector,
Elasticsearch / OpenSearch, Vector (your own) or Syslog (CEF or JSON).
- Only the fields of the chosen backend are shown. Switching the type drops the values of the other type, including its credentials.
- Enter the backend fields. They are the same as on the SIEM streaming page (see
Configuring tenant-level SIEM integration) and in the
Per-backend configuration examples.
- A stored token or password shows as Set with Replace and Clear, never its value.
- In the event list below the fields, select the events to forward.
- Everything (every AI request through this gateway), Blocked requests, Guardrail hits and Personal data removed can be selected.
- Sign-in and access failures, Every tool-access decision and Governance decisions are shown disabled with the badge Organisation only. They have no effect on a gateway. A value already stored through the API stays checked and is kept on save.
- With nothing selected, the gateway sends blocked requests.
- Optional: click on the Test connection button.
- The gateway's current form values are tested through the organisation's test (one
SIEM_TESTevent, see Testing the connection). - The button is shown only if you also hold
TENANT_SETTINGS_MANAGE. Without it, the section reads Ask an organisation admin to test this target.
- The gateway's current form values are tested through the organisation's test (one
- Click on the Save button in the action bar at the bottom of the page.
- The gateway forwards matching events to its own SIEM target.
-> The gateway-level SIEM configuration is active. It replaces the organisation's SIEM streaming for this gateway's AI request events.
When the gateway has its own target, the section shows a hint:
- If the organisation has SIEM streaming too: This gateway has its own SIEM target. It replaces the
organisation's SIEM streaming (
<type>→<host>) for this gateway's AI request events. Sign-in, tool-access and governance events still go to the organisation's target. The hint offers Use the organisation's setting instead and, if you holdTENANT_SETTINGS_MANAGE, a link Open SIEM streaming. - If only the gateway has a target: Only this gateway streams; set SIEM streaming for the whole
organisation to receive sign-in, tool-access and governance events too. With
TENANT_SETTINGS_MANAGEthe hint links to Open SIEM streaming.
💡 Note: To stop using a gateway-level target and fall back to the organisation's SIEM streaming, click on Use the organisation's setting instead and confirm, or set SIEM type to None (use the organisation's SIEM streaming). Then click on Save. The gateway's own target and its stored credentials are removed when you save.
💡 Verifying delivery: a saved configuration that passes validation is not yet proof that events are arriving. Run Test connection first. To confirm end to end, trigger an event your filter forwards (e.g. a request your guardrails block) and watch for it on the SIEM receiver. If nothing arrives, check that the host is reachable from the gateway and (for TLS) presents a publicly-trusted certificate; delivery failures are currently logged on the gateway only.
Validation when you save
The gateway checks a siem object when you save it (gateway config.siem, or tenant siem):
- An unknown field is rejected (
siem has an unknown field: …). typemust besplunk_hec,elasticsearch,vectororsyslog.- HTTP types need
url; it must be a publichttp/httpsURL (loopback, private and link-local addresses are rejected). Syslog fields (host,port,protocol,format) on an HTTP type are rejected. syslogneedshost: a bare host name or IP address (no/,@or spaces).portmust be an integer from 1 to 65535.protocolmust beudp,tcportls;formatmust beceforrfc5424. HTTP fields on a syslog type are rejected.eventsentries must beall,security,blocked,guardrail,scrubbed,accessorgovernance.
A host name must be a valid DNS name: every label 1 to 63 bytes and not starting or ending with -, at most 253 bytes in total, and only letters, digits, - and . (no underscore). This applies to a syslog host and to the host of an HTTP url. A host that breaks this is rejected with 400 invalid_siem (formerly siem_invalid) before any DNS query is made: on a submitted test configuration (POST /admin/v1/tenants/{id}/siem/test with siem), on the tenant SIEM save and on the gateway config.siem save. Testing a stored configuration that breaks this answers 409 invalid_stored_siem_config.
A rejected value returns 400 with invalid siem: <reason> and code invalid_siem. If the target cannot be checked at the
moment (the name lookup failed, or the platform address rules could not be read), the answer is
503 with code siem_target_unverifiable; nothing is saved — try again.
Private syslog targets
For a syslog target, the SIEM streaming page and the gateway form show the hint Private network targets need the platform operator. This section explains it. A syslog receiver on your own network (for example over a VPN to Myra) works only after the operator has prepared the platform; contact support with the host and port. HTTP targets (Splunk, Elasticsearch, Vector) must always be public.
- A syslog target can point to your own private SIEM (RFC 1918, for example
10.200.20.103, or CGNAT100.64.0.0/10) only when the operator enabledsiem_allow_private_targetsand setsiem_egress_deny_cidrs. Without this, private addresses are rejected. - Always rejected (
400): loopback, link-local and cloud-metadata (169.254.169.254,100.100.100.200,168.63.129.16), ULA, site-local (fec0::/10), multicast and reserved addresses,192.0.0.0/24,192.88.99.0/24,198.18.0.0/15,::/96,64:ff9b:1::/48, the IPv4-mapped, NAT64 (64:ff9b::/96) and 6to4 (2002::/16) forms of a refused IPv4 address, and every address in the Myra-infrastructure denylist. Documentation, benchmarking and other special-purpose ranges are refused too; the full list is in Outbound address validation. - The check runs again at delivery against the resolved IP. If any address of the DNS answer is denied, nothing is sent and a warning is logged.
Configuring tenant-level SIEM integration
The tenant-level SIEM configuration is called SIEM streaming in the app. It applies to all gateways of the organisation that have no gateway-level target. Sign-in, tool-access and governance events are sent only through it. You can set it on the SIEM streaming page or through the API.
Using the SIEM streaming page
Before you begin, ensure the following conditions are met:
- ☑ You are logged in as a user with the
TENANT_SETTINGS_MANAGEpermission (a platformadmin, atenant_admin, or a custom role that holds it).
Proceed as follows to configure SIEM streaming:
- Open Organisation → Governance & security → SIEM streaming (user-block menu at the bottom of the left sidebar; the row after Request logs).
- The SIEM streaming page opens (
/org/<org>/governance/siem). - The badge at the top reads Streaming on ·
<type>or Streaming off. - On a first visit nothing is selected and the note Streaming is off. is shown. Save and Test connection stay disabled with Choose a SIEM type first.
- The SIEM streaming page opens (
- Under Where events go, click on a backend card: Splunk HTTP Event Collector,
Elasticsearch / OpenSearch, Vector (your own) or Syslog (CEF or JSON).
- Only the fields of the chosen backend are shown. Switching the type drops the values of the other type, including its credentials.
- Enter the backend fields:
- Splunk HTTP Event Collector: HEC URL, HEC token, Index (optional).
- Elasticsearch / OpenSearch: URL, Index (optional; without it events go to
aig-logs), User name and Password (both optional; Basic auth is sent only when both are set). - Vector (your own): Vector HTTP source URL of your own Vector and Token (optional). A token is
sent as
Authorization: Bearer <token>; without one no authentication header is sent. - Syslog (CEF or JSON): Host, Port, Transport (UDP, TCP or TLS (encrypted, TCP)) and Format. The page also shows the hint Private network targets need the platform operator. (see Private syslog targets).
- HTTP targets (Splunk, Elasticsearch, Vector) must be public addresses.
- Check the credentials. Tokens and passwords are write-only:
- A stored token or password shows as Set, never its value.
- Replace opens an empty field for the new value. Keep current closes it again.
- Clear marks the credential Will be removed on Save. Undo reverts this.
- Saving without touching a credential keeps it.
- Under Which events, select the events to forward (see Event filter).
- Each row shows a label, the wire value, one sentence and example event classes.
- With nothing selected, the default is sent: blocked requests, sign-in and access failures, tool-access denials and governance decisions.
- Under Check the connection, click on the Test connection button.
- One test event is sent with the values on the page, including unsaved changes (see Testing the connection).
- Click on the Save button in the action bar at the bottom of the page.
- The message SIEM streaming saved. is shown. The badge reads Streaming on ·
<type>.
- The message SIEM streaming saved. is shown. The badge reads Streaming on ·
-> All gateways of the organisation without their own SIEM target forward matching events to the configured SIEM backend.
To stop streaming, click on the Remove SIEM button under Stop streaming and confirm with Remove SIEM. This deletes the stored target and credentials. Gateways with their own SIEM target keep theirs.
💡 Note: A user who holds
TENANT_SETTINGS_MANAGEthrough a custom role (not platformadminortenant_admin) cannot see the stored setting; the API hides it. The page then shows A SIEM may already be set for this organisation; only organisation admins can see it. Saving replaces it.
Using the API
Proceed as follows to configure tenant-level SIEM integration through the API:
-
Send a
PATCHrequest to/admin/v1/tenants/{id}with thesiemobject in the request body:PATCH /admin/v1/tenants/{id} Content-Type: application/json { "siem": { "type": "splunk_hec", "url": "https://splunk.corp.com:8088/services/collector/event", "token": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "events": ["blocked", "guardrail"] } }- The tenant SIEM configuration is saved.
-> All gateways under the tenant forward matching events to the configured SIEM backend, unless they have a gateway-level override.
💡 Note: To clear the tenant SIEM configuration, send
"siem": nullin the PATCH request body. Omittingsiemleaves the stored configuration unchanged. An unchangedsiemobject (the value returned byGET) is accepted without a new check, so saving the tenant does not fail on an older configuration.
Clearing the tenant SIEM configuration
- An explicit
"siem": nullremoves the stored configuration. Gateways without their own SIEM override stop forwarding events to the old target. - The same permission as setting applies:
TENANT_SETTINGS_MANAGE, which includes custom-role callers holding that permission. A caller without it receives403. - The answer is
200whether or not a configuration was stored, so the call is safe to repeat. {},[]and any other non-object value (false,0, a string) are rejected with400and change nothing. Onlynullclears.- Send
siemin its own PATCH. If the same request also carries a field that needs four-eyes approval, it is rejected with400and codesiem_requires_separate_patch, and nothing is written. - Every set, change and clear is recorded in the audit log as
tenant.siem_changed. The entry holds only the SIEMtypeandhost, never a token, password, username or URL path. Every other field that changed is named with a placeholder instead of its value:"(previous value)"before and"(new value)"after (for example"token": "(new value)"after a token rotation). A field that did not change is left out. A caller who may change the SIEM target but not read it (a custom role with the settings permission) getsurl,token,usernameandpasswordnamed whenever either side holds them, changed or not, so the entry never tells whether a guessed credential matches the stored one. A save that leaves the stored configuration exactly as it was (for example one that only adds an empty"index": null) writes nothing and records no entry.
Testing the connection
Test a SIEM target before you rely on it. You can test on the SIEM streaming page, on the gateway form or through the API.
A test sends one real event. For Splunk HEC, Elasticsearch and Vector it writes one real document into your index; for syslog it sends one real message. The event is marked (
siem_testin JSON payloads, classSIEM_TESTin CEF) so you can filter it out. The test ignores theeventsfilter.
Test connection on the page
The Test connection button under Check the connection on the SIEM streaming page always tests the
values currently in the form, including unsaved changes. You do not need to save first. On the gateway form
the button tests the gateway's values through the organisation's test; it is shown only to users who also hold
TENANT_SETTINGS_MANAGE.
While the test runs, the button reads Testing…. The connection is bounded to about 15 seconds; a target given by host name can take about 30 seconds, because the name is resolved too.
The result is shown as a message. A small line under it shows the stage, the detail and the latency. If the server refuses a field value, the reason is shown under that field and nothing is sent.
| Stage | Message | Meaning and what to do |
|---|---|---|
delivered |
Connected. Your SIEM accepted the test event in N ms. | The event arrived. Look for the event marked siem_test (in the index, if you set one). |
delivered (syslog over UDP) |
The test message was sent. UDP has no receipt… | The message left the gateway. UDP has no acknowledgement, so check on your SIEM that it arrived. |
auth |
Your SIEM refused the credentials (HTTP 401/403). | The address works, but the token or user name and password are wrong or lack write access to the index. Replace them and test again. |
connect |
Your SIEM could not be reached. | No connection within 15 s. Check the host name and port and that your firewall lets the gateway addresses in. For HTTPS targets also check that the certificate is publicly trusted. |
tls_handshake |
The secure connection failed. | Syslog over TLS: the receiver must present a publicly trusted certificate for this host name. Self-signed or private-CA certificates are not accepted yet. |
send |
Your SIEM answered with an error (HTTP n). | The SIEM was reached but did not accept the event. Check the URL path and the index name. Without an HTTP status, the answer timed out or the connection broke. |
ssrf_gate, or a refused address |
This address is not allowed as a SIEM target. | Loopback, cloud-metadata and Myra-internal addresses are always refused. Private networks work for syslog only, after the operator allows them (see Private syslog targets). Nothing was sent. |
config, or 503 |
The target could not be checked right now. | The name lookup failed or the platform's address rules could not be read. Try again in a moment. |
429 |
Too many tests in a short time. | You can run 10 tests a minute (30 for the whole organisation). Wait a minute and try again. |
Testing through the API
Use POST /admin/v1/tenants/{id}/siem/test (API reference). You can test the stored configuration or submit one without saving it. The page sends {"siem": <form values>}.
The answer tells you the stage that failed: ssrf_gate (blocked address), connect (no connection; for HTTP backends this also covers HTTPS certificate or TLS problems), tls_handshake (syslog over TLS), auth (HTTP 401/403), send, or delivered. UDP syslog cannot be acknowledged, so delivered there only means the datagram was sent. A test is bounded to about 15 seconds for connect, TLS and send. Resolving a host name is not part of that bound: a name is resolved when the target is checked and again to pin the dial, and each resolution can take up to about 8 seconds (IPv4 and IPv6 answers, up to about 4 seconds each), so a test of a target given by name can take longer than 15 seconds.
See also
- SIEM targets — what a SIEM target is and why
- Connect Enginsight SIEM — Event Relay setup for Enginsight
- Guardrails — configure the detector pipeline
- Logs API — query request logs via REST