Skip to content

Integrations overview

ARTEX keeps the engagement record. The audit log adds a record of what agents did on the network and through ARTEX: every request through the recording proxy, every MCP tool call, Claude Code’s own API traffic, and alerts. These pages show how to get that record into the tools a security or operations team already runs. Agents still need a person checking their work; the point of shipping the log is that the person can.

ARTEX does not contain any vendor client. It writes the audit log as JSON lines, one file per stream, in <data>/audit/ (or --audit-dir), and a shipper or collector you run does the rest. The files are the authoritative copy; anything a backend holds is a copy of them.

File Records
target.jsonl artex.http for every exchange the recording proxy records, artex.tunnel for a host it passes through unrecorded. No alerts are raised on this stream yet
agent.jsonl artex.tool_call for every MCP tool call, and the alerts (artex.alert) ARTEX raises today. Claude Code hook events are reserved in the schema but not emitted
anthropic.jsonl artex.model_request for every Claude Code API exchange through the proxy: model, token counts, status, latency. The prompt appears only as a keyed hash, and bodies never

Each stream also carries artex.heartbeat every 60 seconds, an artex.audit_config record at startup and an artex.audit_pruned record when retention deletes files. Every record carries artex.stream, so one pipeline can route all three. The audit schema lists the fields of each event, and its JSON Schema and golden fixtures are what the examples on these pages were checked against.

Each record is an OpenTelemetry log record written as one flat JSON object with dotted keys. The log record’s own fields come first (time, severity_number, severity_text, event_name, body); every other key is an attribute named by OpenTelemetry semantic conventions, with ARTEX-only fields under artex.*. service.name, service.version, service.instance.id and, when serve runs an engagement, artex.engagement_id describe the writer, so a collector can move them onto the resource. A request an agent’s command sent through the proxy:

{"time":"2026-12-03T15:04:05.123456789Z","severity_number":9,"severity_text":"INFO","event_name":"artex.http","body":"POST https://app.example.test/api/users/{id}?token=REDACTED 200","log.record.uid":"01KBJ6Q8K4V9W2B3N5M7P0R1ST","artex.seq":4211,"artex.schema_version":"1.0","artex.stream":"target","service.name":"artex-cc","service.version":"0.13.0","service.instance.id":"01KBJ5ZT4M8XQ0C2V6N9R3D7HA","artex.engagement_id":7,"artex.attribution.client_address_source":"proxy_socket","artex.attribution.client_address_trust":"server","artex.attribution.identity_source":"proxy_tag","artex.attribution.identity_trust":"claimed","artex.duration_ns":48210000,"artex.exchange_id":"1764774245-0042","artex.identity":"artex/exec","artex.registered_domain":"example.test","client.address":"127.0.0.1","http.request.body.size":412,"http.request.method":"POST","http.response.body.size":1880,"http.response.status_code":200,"server.address":"app.example.test","server.port":443,"url.full":"https://app.example.test/api/users/{id}?token=REDACTED","url.scheme":"https","url.template":"/api/users/{id}","user_agent.original":"curl/8.11.1"}

url.full is already redacted: id-like path segments are templated and query values read REDACTED.

Attribution fields come in pairs: artex.attribution.<field>_source says where a value came from and artex.attribution.<field>_trust how far to trust it (server, verified, reported, claimed or none).

  • Tool calls carry artex.identity with trust verified when the caller sent a verified X-Artex-Identity, such as a web UI chat agent (chat/<id>), and session.id with trust reported under serve --stdio.
  • Target traffic carries client.address (trust server) and, when the client used an attribution tag, the tag’s label in artex.identity with trust claimed. ARTEX tags its own clients: each web UI chat conversation’s claude and its Bash commands are chat/<conversation id>, capture_command_output is artex/exec, plugins are artex/plugin and traffic_replay is artex/replay. Grouping target traffic by artex.identity therefore separates chat conversations from each other, ARTEX’s other clients and any session you gave its own tag with artex-cc identity proxy-tag. Untagged traffic has trust none; ARTEX_PROXY_REQUIRE_TAG=1 refuses it with 407 instead, so a client that lost its tag fails visibly.

A tag is a label the client presents and could strip or replay. Use it to sort and triage, not as proof.

Detections run inside ARTEX, so a backend only needs to alert on event_name == "artex.alert" and route on artex.alert.severity (info, notice, warning, high, critical). The record’s own severity is coarser: INFO for info and notice, WARN for warning, ERROR for high and critical. Two detectors exist today, and both write to agent.jsonl:

security_rule.name Severity Raised when
audit.tamper high Every traffic_clear call, failed ones included, since it deletes recorded traffic
egress.scope_dns_moved warning With ARTEX_EXEC_EGRESS=scope, an in-scope domain resolves to an address outside its pinned addresses and the IP scope

An egress.scope_dns_moved alert:

{"time":"2026-12-03T15:04:09.000000001Z","severity_number":13,"severity_text":"WARN","event_name":"artex.alert","body":"in-scope app.example.test now resolves to 203.0.113.66, outside its pinned addresses 198.51.100.1, 198.51.100.2 and the IP scope; reachable only through the recording proxy","log.record.uid":"01KBJ6QC0F4T7W1Y3Z5B8D2G6J","artex.seq":918,"artex.schema_version":"1.0","artex.stream":"agent","service.name":"artex-cc","service.version":"0.13.0","service.instance.id":"01KBJ5ZT4M8XQ0C2V6N9R3D7HA","artex.engagement_id":7,"artex.alert.severity":"warning","artex.egress.action":"proxy_only","artex.egress.address":"203.0.113.66","artex.egress.pinned_addresses":["198.51.100.1","198.51.100.2"],"artex.scope_rule":"example.test","artex.scope_rule_kind":"root_domain","security_rule.category":"scope","security_rule.description":"In-scope domain resolved outside its pinned addresses and the IP scope","security_rule.name":"egress.scope_dns_moved","server.address":"app.example.test"}

An audit.tamper alert carries the tool in gen_ai.tool.name, the host pattern in artex.traffic.host, the counts in artex.traffic.deleted and artex.traffic.kept, and the caller’s verified artex.identity when it has one. See Field mappings for ECS, Splunk CIM, OCSF, CrowdStrike CPS and Google SecOps UDM.

You run Start with
An OpenTelemetry Collector, or want one place to route and redact OpenTelemetry Collector
Vector Vector
Fluent Bit Fluent Bit
Splunk Enterprise or Splunk Cloud Platform Splunk
Elastic (self-managed, Elastic Cloud, Serverless) Elastic
CrowdStrike Falcon Next-Gen SIEM or Falcon LogScale CrowdStrike
Dynatrace Dynatrace
Datadog Datadog
Microsoft Sentinel Microsoft Sentinel
Google SecOps Google SecOps
AWS (CloudWatch Logs, Security Lake) AWS
QRadar, ArcSight or another syslog, CEF or LEEF SIEM Syslog, CEF and LEEF
Grafana, Loki and Alloy artex-cc-grafana-example, a separate example repository

Rules that apply everywhere:

  • Tail the active files only. Name target.jsonl, agent.jsonl and anthropic.jsonl, or the glob *.jsonl. A file rotates at 100 MiB or a new UTC day by rename, to target.jsonl.20261128T100000Z, and older generations are gzipped (target.jsonl.20261128T100000Z.gz). Neither name matches, so a tailer never reads a generation twice; a shipper that reads .gz files must not be pointed at them. The latest rotated generation stays uncompressed so a tailer holding it open can finish it.
  • Deduplicate on log.record.uid. Shippers deliver at least once.
  • Watch for gaps. artex.seq rises by one per record within one service.instance.id and artex.stream, so a missing number is a lost record and a new instance id starting at 1 is a restart. A stream with no artex.heartbeat for a few intervals means the writer or the shipper is down, not that agents are idle, and a rising artex.heartbeat.dropped_total or write_errors_total means the writer lost records. See Gap detection.
  • artex.engagement_id is optional. It is absent when serve runs without an engagement, so collector steps that move it need a guard.
  • Retention is per side. ARTEX deletes rotated local files after ARTEX_AUDIT_RETENTION (default 7d, per stream with ARTEX_AUDIT_RETENTION_TARGET, _AGENT and _ANTHROPIC, and an optional size cap). A deletion writes an artex.audit_pruned record, which explains a gap in an archive. Your backend’s retention is yours to set, and the anthropic stream usually deserves a shorter one. The artex.audit_config.hash each stream gets at startup changes whenever the audit settings do.
  • File permissions. The audit directory is 0750 and the files 0640, owned by the user serve runs as and that user’s primary group. Run a sidecar shipper as that user or a member of that group, with the directory mounted read-only.
  • Keep the shipper’s own traffic out of the recording proxy, so it is not recorded as agent traffic.
  • Backfill limits. Several backends drop events older than a limit (Datadog 18 hours, Dynatrace 72 hours, CloudWatch 14 days). Replaying a long local backlog after an outage loses the older part there.

ARTEX’s own server log is plain text on stderr (docker logs, journald). Any of these shippers can collect it as text alongside the audit log.

Example Check Result
OpenTelemetry Collector otelcol-contrib validate (0.166.0), plus a run against sample records with the debug exporter Passed; records parsed, routed by stream and redacted as described
Splunk OTel Collector otelcol validate from quay.io/signalfx/splunk-otel-collector (0.165.1) Passed
Dynatrace OTel Collector dynatrace-otel-collector validate (0.61.0) Passed
Vector (Splunk, Datadog, Sentinel, SecOps, CloudWatch, syslog/CEF) vector validate --no-environment (0.62.0), plus a run of the Sentinel and CEF transforms against sample records Passed
Fluent Bit (OTLP, syslog, Sentinel) fluent-bit --dry-run (5.2.1), plus a run of the tail input and parser against sample records Passed
Filebeat (Elastic) filebeat test config (9.5.6) Passed
Example records on these pages Validated against audit/schema/v1.json, with every key declared there Passed
Splunk add-on files, Falcon LogScale Collector, Datadog Agent, CloudWatch agent, KQL, SPL, CQL, DQL and ES|QL queries None Written from vendor documentation only

The checks were re-run on 2026-12-03 after the configurations were revised against main, with sample records taken from the schema’s golden fixtures. “Passed” means the tool accepted the configuration with placeholder endpoints and credentials. No example was run against a real vendor account, and no vendor service was called.

  • OTLP export of the audit streams (#395), so a backend with an OTLP intake can take records without a file shipper. The vendor pages keep their OTLP notes under their own Planned sections.
  • HTTP sink (#386): batched NDJSON posts with static headers, also usable as an alert webhook.
  • Metrics (#396): operational and audit metrics over OTLP and a Prometheus /metrics endpoint.
  • Structured server logs (#398): JSON output and an OpenTelemetry log bridge for ARTEX’s own log.
  • Runner resource attributes (#392) on the claude processes the web UI runner starts, so Claude Code’s own telemetry can be joined with the audit log.
  • Hook events (#390): artex.hook records on the agent stream, with Claude Code’s agent_id and parent_agent_id.
  • Egress detectors (#372, #373, #374, #375, #377): scope.out, domain.new, dest.exfil, body.large and secret.leak alerts on the target stream, with artex.in_scope and artex.subject_event_id on the records. The schema already declares these fields; nothing emits them yet.