Stream events to your SIEM
Send every audit event to Splunk, Microsoft Sentinel, Datadog, Amazon S3 or another destination, as it happens.
What it shows
- Run an OpenTelemetry Collector that prints each log record that it receives.
- Add the collector as a log sink in the portal, and send a test event.
- Sign in to your organization, and find the event at the collector.
- Read the state of the sink when the destination does not answer.
The collector stands for your SIEM. Each destination has its own form in the portal, and the steps are the same for all of them.
Before you start
- Check that your plan includes SIEM log export in the plans matrix.
- An account in the portal that holds the permission
settings.manage. - Docker, for the collector.
- A public HTTPS address for the collector. LumoAuth refuses a destination on
localhostor in a private network, so put a reverse proxy with a certificate in front of the collector.
| Variable | Value |
|---|---|
COLLECTOR_PORT | Optional. The port of the collector on your machine. Default: 4318. |
COLLECTOR_URL | Optional, for sample.sh. The address of the collector. Default: http://localhost:4318. |
Code
Start the collector, and run sample.sh in a second terminal. The collector prints one record: it accepts the form that LumoAuth sends.
Run each command from the recipes folder of the examples repository. Set the folder up once for your language. The portal steps were followed on an organization up to the saved sink and its row in the list. The test event and the delivery of a real event were not seen.
- curl
# An OpenTelemetry Collector that prints every log record that it receives.
# LumoAuth posts each audit event to /v1/logs as OTLP/HTTP JSON.
receivers:
otlp:
protocols:
http:
endpoint: 0.0.0.0:4318
exporters:
# Replace this exporter with the one of your SIEM when the records arrive.
debug:
verbosity: detailed
service:
pipelines:
logs:
receivers: [otlp]
exporters: [debug]
# Starts the collector on port 4318.
#
# docker compose -f operations/stream-to-a-siem/http/compose.yaml up
#
# LumoAuth sends only to a public HTTPS address. Put a reverse proxy with a
# certificate in front of this port before you add the sink.
services:
collector:
image: otel/opentelemetry-collector:0.120.0
command: ["--config=/etc/otelcol/config.yaml"]
volumes:
- ./otel-collector.yaml:/etc/otelcol/config.yaml:ro
ports:
- "${COLLECTOR_PORT:-4318}:4318"
#!/bin/sh
# Post one log record to the collector, in the form that LumoAuth sends.
# Use it to check the collector before you add the sink.
#
# sh operations/stream-to-a-siem/http/sample.sh
set -eu
COLLECTOR_URL="${COLLECTOR_URL:-http://localhost:4318}"
# One audit event is one log record. The body is the message of the event,
# and the fields of the event are attributes.
curl --silent --show-error --fail "$COLLECTOR_URL/v1/logs" \
--header "Content-Type: application/json" \
--data '{
"resourceLogs": [{
"resource": {"attributes": [
{"key": "service.name", "value": {"stringValue": "lumoauth"}},
{"key": "service.namespace", "value": {"stringValue": "lumoauth"}}
]},
"scopeLogs": [{
"scope": {"name": "lumoauth.audit", "version": "2.0"},
"logRecords": [{
"timeUnixNano": "1795770000000000000",
"severityNumber": 13,
"severityText": "WARN",
"body": {"stringValue": "Failed password login for maya.chen@example.com"},
"attributes": [
{"key": "lumoauth.tenant.slug", "value": {"stringValue": "acme-corp"}},
{"key": "event.name", "value": {"stringValue": "login.failed"}},
{"key": "event.action", "value": {"stringValue": "login"}},
{"key": "event.outcome", "value": {"stringValue": "failure"}},
{"key": "enduser.name", "value": {"stringValue": "maya.chen@example.com"}},
{"key": "client.address", "value": {"stringValue": "203.0.113.0/24"}},
{"key": "lumoauth.request_id", "value": {"stringValue": "2d92dd89-1b75-4e30-83ee-bb8fc05f574c"}}
]
}]
}]
}]
}'
echo
echo "sent: look for login.failed in the output of the collector"
docker compose -f operations/stream-to-a-siem/http/compose.yaml up
Compiles. Not run against an organization. The collector ran and printed the record of sample.sh. No event of an organization reached it: LumoAuth sends only to a public HTTPS address, and the test had none.
Then add the sink:
- In the portal, open Settings, Integrations, and select the tab SIEM & log export.
- On the card OpenTelemetry (OTLP/HTTP), select Configure. The portal can ask for your password again.
- Enter a Display name, for example
Collector. - In Collector endpoint, enter the public address of your collector, for example
https://otel.example.com. LumoAuth adds/v1/logs. - If your proxy asks for a credential, enter it in Authorization header. LumoAuth stores it encrypted and does not show it again.
- Select Create sink. The page of the sink opens.
- Select Send test event. The page shows the result, and the collector prints a record with the event
integration.test.
Check the result
LogRecord #0
Timestamp: 2026-11-27 09:00:00 +0000 UTC
SeverityText: WARN
SeverityNumber: Warn(13)
Body: Str(Failed password login for maya.chen@example.com)
Attributes:
-> lumoauth.tenant.slug: Str(acme-corp)
-> event.name: Str(login.failed)
-> event.action: Str(login)
-> event.outcome: Str(failure)
-> enduser.name: Str(maya.chen@example.com)
-> client.address: Str(203.0.113.0/24)
-> lumoauth.request_id: Str(2d92dd89-1b75-4e30-83ee-bb8fc05f574c)
- Sign in to your organization, or make a failed sign-in. The collector prints one record for each audit event. The name of the event is in
event.name, and the result is inevent.outcome. - To match a record with an entry of the audit log, compare
lumoauth.request_idwith therequestIdof the entry.lumo logs get <id>prints it. - The list under SIEM & log export has one row for each sink, with the columns Status, Delivered, Failed and Last success.
- Stop the collector and sign in again. Failed grows by four for each event: the first attempt and three retries. After five failed attempts in a row the sink shows Paused.
Limits
- The kind of the sink decides the format. OpenTelemetry gets OTLP/HTTP JSON, Amazon S3 and Generic HTTP get OCSF 1.3, and the other destinations get the JSON format of LumoAuth.
- A record in the OTLP format does not carry the ID of the audit entry. The OCSF format carries it as
metadata.uid. - An event that fails four times, or that happens while the sink is paused, is not sent later. It stays in the audit log: see Query and export the audit log.
- LumoAuth shortens the IP address of the caller to its network before it sends the event.
- Log sinks have no Admin API. You manage them in the portal.