100% Free · Open Source GPLv2 · Zero setup requiredGet the Plugin

Opens in a new tab
ITX UserOps
Experimental

Streaming to a SIEM

Syslog, CEF or JSON lines to your collector — with a spool between your visitors and the network, and a severity floor that controls the bill.

Experimental. The three formats are implemented and tested, but not against every collector they might meet. Send a test batch and read what your collector actually ingested before wiring dashboards to it.

Pick the sink that matches your collector

ITX UserOps → Integrations — the streaming section offers three sinks:

SinkWire formatTypical collector
SyslogRFC syslog lines over UDP or TCP, or the host's own syslog daemon (local)rsyslog, syslog-ng, a network syslog relay
CEFCEF payloads with a syslog headerArcSight, Splunk with CEF sourcetypes, Microsoft Sentinel's CEF connector
HTTPSJSON lines (application/x-ndjson), POSTed in batchesDatadog, Grafana Loki, Elastic, any HTTP intake

Configure the one your collector speaks: host and port (default 514) plus UDP/TCP for the syslog pair — local writes through the server's own syslog daemon instead, useful when the host already forwards — or the intake URL for HTTPS, with optional auth as a bearer token or a custom header (Datadog's DD-API-KEY, for example). Redirects are deliberately not followed on the HTTPS sink: a redirect would re-send your token to whatever host the collector named.

Set the severity floor before enabling

min_severity is the setting that controls the bill. Streaming every Info event from a busy site into a per-event-priced SIEM is a cost nobody forecast — set the floor to Notice or Warning unless you know you want the login-by-login feed. The Activity Log keeps everything locally either way; the floor only limits what leaves the site.

Then enable the stream.

How delivery works — and why cron matters

Events are not sent from your visitors' requests. They buffer in memory, are appended to a spool at the end of the request, and a one-minute cron job drains the spool with real, blocking sends whose responses are read. The worst case for a visitor is one extra option write; the worst case for the feed is the spool filling while cron is dead.

Two operational consequences:

  • WP-Cron must actually run. On low-traffic sites or DISABLE_WP_CRON setups, make sure a real cron hits wp-cron.php every minute — see constants.
  • The screen reports the feed's health — last delivery, failures, spool state. A feed that stopped is shown as stopped, and itxuo_logstream_failed fires for wiring into your own monitoring, so "silently dead since March" is a state this feature refuses to have.

Verify at the collector

Enable, perform one loggable action (sign out and in), wait a minute for the drain, and search your collector for it. Check the parsed fields, not just arrival: syslog facility and hostname, CEF field mapping in ArcSight/Splunk, JSON keys in Datadog/Loki. Adjust the sink or your collector's parser now, while the volume is one event.

Worked example: Datadog

  1. Sink: HTTPS. URL: https://http-intake.logs.datadoghq.com/api/v2/logs (use your Datadog site's domain).
  2. Auth: custom header, name DD-API-KEY, value your API key.
  3. min_severity: Notice.
  4. Sign in, wait a minute, then in Datadog: source:* filtered by your site's hostname — the events arrive as structured JSON lines, one object per event.

The rsyslog case is even shorter: sink Syslog, UDP, the relay's host and port — and confirm the relay's firewall accepts your web server's address.

Switching it off

Disable it on the screen — or, when the collector is the thing that is down and you need certainty without database access:

define( 'ITXUO_DISABLE_LOG_STREAM', true );

in wp-config.php stops streaming immediately without touching settings. See kill switches.

Also worth reading

Log in

Vote on ideas, submit your own and join the discussion.