Skip to content

Syslog, CEF and LEEF

ARTEX has no native syslog output; shippers already do this well. Send alerts at least. Sending every egress record over syslog works but is heavy for a format with no structure beyond key=value pairs.

The transform builds an RFC 5424 line with a CEF body for each ARTEX alert, and the socket sink sends it over TCP:

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: text

Use with the Vector base config. The output line for the egress.scope_dns_moved alert on the overview:

<134>1 2026-12-03T15:04:09.000000001Z artex-host artex-cc - artex-alert - CEF:0|ARTEX-CC|artex-cc|v1|egress.scope_dns_moved|ARTEX alert|5|rt=2026-12-03T15:04:09.000000001Z dhost=app.example.test suser= cs1Label=category cs1=scope

dhost is empty for an audit.tamper alert and suser for an egress.scope_dns_moved one, since those records do not carry the field. Add the detector’s own fields (see the audit schema) as further extension keys if your SIEM should show them.

Escape | in header values and = in extension values if your data can contain them; the sample transform does not. For TLS, put the socket sink behind stunnel or use a syslog relay; prefer TCP or TLS over UDP, which drops records silently.

LEEF 2.0 has the header LEEF:2.0|Vendor|Product|Version|EventID|<delimiter>| followed by attributes. The same transform can produce it by changing the header and joining attributes with a tab. QRadar can also take ARTEX’s JSON directly through its HTTP Receiver log source, which avoids LEEF entirely.

Fluent Bit’s syslog output sends RFC 5424 over TLS; see Fluent Bit. Its message is the field named in syslog_message_key, so add a filter that builds a CEF string first if the SIEM expects CEF.

Sentinel’s CEF connector needs an Azure Monitor Agent forwarder running rsyslog or syslog-ng, and writes to CommonSecurityLog. The JSON route on the Microsoft Sentinel page keeps more fields.

  • Vector: vector validate 0.62.0 passed, and the CEF transform was run against a sample alert with a console sink, producing exactly the line above for the overview’s alert record.
  • Fluent Bit syslog output: fluent-bit --dry-run 5.2.1 passed.
  • The LEEF description and the CEF key choices (dhost, suser, cs1) were written from vendor documentation only. The individual CEF extension key definitions were not checked against the ArcSight dictionary, and nothing was sent to a SIEM.