Vector
Vector has sinks for most backends on these pages, so one base config plus one sink file covers them. Vector loads several config files and merges them.
Base: source, parse, route
Section titled “Base: source, parse, route”data_dir: /var/lib/vector
sources: artex_audit: type: file include: - /artex/audit/target.jsonl - /artex/audit/agent.jsonl - /artex/audit/anthropic.jsonl read_from: beginning
transforms: artex_parsed: type: remap inputs: [artex_audit] source: | . = parse_json!(string!(.message)) .timestamp = parse_timestamp!(string!(."time"), format: "%+")
artex_by_stream: type: route inputs: [artex_parsed] route: target: '."artex.stream" == "target"' agent: '."artex.stream" == "agent"' anthropic: '."artex.stream" == "anthropic"'
artex_alerts: type: filter inputs: [artex_parsed] condition: '."event_name" == "artex.alert"'artex_by_stream.target, .agent and .anthropic are the routed outputs; artex_alerts carries only ARTEX’s alert records, which today are all on the agent stream. Leave anthropic unconnected unless you mean to export it. Name only the active files: rotated generations (target.jsonl.<UTC time>, older ones .gz) must not match include.
Each vendor page shows its sink. They are collected here for reference.
Splunk HEC:
sinks: splunk_target: type: splunk_hec_logs inputs: [artex_by_stream.target] endpoint: "${SPLUNK_HEC_URL}" default_token: "${SPLUNK_HEC_TOKEN}" index: artex sourcetype: "artex:target" encoding: codec: json splunk_agent: type: splunk_hec_logs inputs: [artex_by_stream.agent] endpoint: "${SPLUNK_HEC_URL}" default_token: "${SPLUNK_HEC_TOKEN}" index: artex sourcetype: "artex:agent" encoding: codec: jsonDatadog:
sinks: datadog: type: datadog_logs inputs: [artex_by_stream.target, artex_by_stream.agent] default_api_key: "${DD_API_KEY}" site: "${DD_SITE}" compression: gzipMicrosoft Sentinel (Logs Ingestion API). Azure column names cannot contain dots, so the transform flattens them:
transforms: artex_flat_columns: type: remap inputs: [artex_by_stream.target, artex_by_stream.agent] source: | # Azure column names allow letters, digits and underscores only. . = map_keys(.) -> |key| { replace(key, ".", "_") } .TimeGenerated = del(.timestamp)
sinks: sentinel: type: azure_logs_ingestion inputs: [artex_flat_columns] endpoint: "${AZURE_DCE_URL}" dcr_immutable_id: "${AZURE_DCR_ID}" stream_name: "Custom-ArtexAudit_CL" auth: azure_credential_kind: client_secret_credential azure_tenant_id: "${AZURE_TENANT_ID}" azure_client_id: "${AZURE_CLIENT_ID}" azure_client_secret: "${AZURE_CLIENT_SECRET}"Google SecOps:
sinks: secops: type: gcp_chronicle_unstructured inputs: [artex_by_stream.target, artex_by_stream.agent] customer_id: "${SECOPS_CUSTOMER_ID}" credentials_path: /etc/vector/secops-sa.json log_type: "${SECOPS_LOG_TYPE}" region: us encoding: codec: jsonAWS CloudWatch Logs, one log stream per ARTEX stream:
sinks: cloudwatch: type: aws_cloudwatch_logs inputs: [artex_by_stream.target, artex_by_stream.agent] region: "${AWS_REGION}" group_name: /artex/audit stream_name: '{{ "artex.stream" }}' encoding: codec: jsonSyslog with a CEF body, alerts only:
transforms: artex_cef: type: remap inputs: [artex_alerts] source: | level = string(."artex.alert.severity") ?? "info" sev = if level == "critical" { "10" } else if level == "high" { "8" } else if level == "warning" { "5" } else if level == "notice" { "3" } else { "1" } cef = "CEF:0|ARTEX-CC|artex-cc|v1|" + (string(."security_rule.name") ?? "artex.alert") + "|ARTEX alert|" + sev + "|rt=" + (string(."time") ?? "") + " dhost=" + (string(."server.address") ?? "") + " suser=" + (string(."artex.identity") ?? "") + " cs1Label=category cs1=" + (string(."security_rule.category") ?? "") # RFC 5424 header, facility local0 (16), severity informational. . = {"message": "<134>1 " + (string(."time") ?? "-") + " artex-host artex-cc - artex-alert - " + cef}
sinks: legacy_siem: type: socket inputs: [artex_cef] mode: tcp address: "${SIEM_SYSLOG_ADDR}" framing: method: newline_delimited encoding: codec: textRun with vector --config base.yaml --config sink-splunk.yaml.
Environment variables in Vector 0.62
Section titled “Environment variables in Vector 0.62”Vector 0.62.0 interpolates ${VAR} in config files only when started with --dangerously-allow-env-var-interpolation (or VECTOR_DANGEROUSLY_ALLOW_ENV_VAR_INTERPOLATION). Without it, the ${...} placeholders above are read literally and validation fails with “invalid uri character”. Either pass the flag or move the credentials to one of Vector’s secret backends.
ARTEX’s own log
Section titled “ARTEX’s own log”ARTEX’s server log is plain text on stderr. Collect it with the docker_logs or journald source if you want it next to the audit log.
Planned
Section titled “Planned”With metrics (#396), Vector’s prometheus_scrape source could read ARTEX’s /metrics and forward it with your backend’s metrics sink. JSON server logs are tracked in #398.
Validation
Section titled “Validation”vector validate --no-environment --dangerously-allow-env-var-interpolation base.yaml <sink>.yamlwith Vector 0.62.0, for each of the six sink files, using placeholder endpoints and credentials: all passed.- The Sentinel flattening transform and the CEF transform were run against sample records with a console sink, and produced flat keys and an RFC 5424 line with a CEF body as shown. The CEF transform was re-run against an
egress.scope_dns_movedand anaudit.tamperrecord. --no-environmentskips health checks, so no endpoint was contacted. Not run against a real backend.