KORTHVEILSecurity firewall
Guides

Send logs to a SIEM: Splunk, Microsoft Sentinel, Elastic, QRadar, ArcSight

Download as PDF All guides

Korthveil sends copies of its logs as they happen to the tools your security team already uses:

  • Splunk through its HTTP Event Collector (HEC);
  • Microsoft Sentinel through the Azure Monitor Logs Ingestion API;
  • Elastic (Elasticsearch, Elastic Cloud) as Elastic Common Schema documents;
  • IBM QRadar in LEEF 2.0 and ArcSight (and most other SIEMs) in CEF, over encrypted syslog;
  • any web hook that takes JSON over HTTPS.

Every event carries its fields: source and destination address (IPv4 or IPv6), ports, protocol, the action (allowed, denied, dropped), the rule's name, the severity and, where there is one, the user, the web site, the IPS signature and its CVEs.

You can add several destinations. Each has its own format, its own choice of event types and a minimum severity, and its own queue: a slow or unreachable SIEM never holds up the others or the firewall.

Where: Monitoring › Logs & audit › Audit log, the panel Send logs to syslog servers and SIEMs.

Three destinations: a Splunk HEC, a Sentinel and a syslog CEF server, with their State and counters
Three destinations: a Splunk HEC, a Sentinel and a syslog CEF server, with their State and counters

You need:

  • an administrator account on the firewall;
  • for an HTTPS destination: its address and a token or app (see the section for your SIEM);
  • for a syslog SIEM: its address, and a TLS listener if it has one (port 6514).

Step 1: Add a destination

  1. Open Monitoring › Logs & audit › Audit log and scroll to Send logs to syslog servers and SIEMs.
  2. Type a short name, for example splunk, and press Add destination.
  3. Choose its Type:
    • Syslog server: RFC 5424, JSON, CEF or LEEF over TLS, TCP or UDP;
    • Splunk (HTTP Event Collector);
    • Microsoft Sentinel;
    • Elastic;
    • JSON over HTTPS (web hook).
  4. Fill in the fields of that type (the sections below), then choose what to send (Step 2).
  5. Press Save to pending changes, then commit.
  6. Open the destination again and press Send test event (Step 3).
The Type list of a destination
The Type list of a destination

Every HTTPS destination uses TLS 1.2 or later and checks the server's certificate. Leave Trust (CA) on Public CAs for Splunk Cloud, Sentinel and Elastic Cloud. For a server with a certificate from your own CA, import that CA under System › Certificates & encryption › Certificates and choose it here; then only that CA is trusted.

The token, API key, password and client secret are kept secret: after saving, the page only shows that they are set. They never appear in logs, error messages, configuration exports, the change list, or diagnostics bundles. To change one, type the new value; leave the field empty to keep the stored one.

Splunk (HTTP Event Collector)

In Splunk: Settings › Data inputs › HTTP Event Collector › New Token. Give it a name, choose the index, and copy the token value. In Global Settings, check that HEC is enabled (and, on Splunk Enterprise, its port, 8088 by default).

On the firewall:

Field Example
HEC address https://example.splunkcloud.com:8088
HEC token 11111111-2222-3333-4444-555555555555
Index firewall (empty: the token's default index)
Sourcetype _json (the default)

Korthveil adds /services/collector/event when the address has no path. Each event is the Korthveil JSON event (event, action, rule, src, dst, srcPort, dstPort, proto, ipVersion, severityName, message, …), so Splunk extracts the fields by itself.

A Splunk HEC destination with the example values, State sending
A Splunk HEC destination with the example values, State sending

Search in Splunk: index=firewall sourcetype=_json event=rule action=deny.

Microsoft Sentinel

Sentinel stores Korthveil's events in a custom table of its Log Analytics workspace. You set up four things in Azure once.

  1. A data collection endpoint. Azure portal › Monitor › Data collection endpoints › Create, in the workspace's region. Open it and copy the Logs Ingestion URL.
  2. The table and its data collection rule. Log Analytics workspace › Tables › Create › New custom log (DCR-based):
    • table name KorthveilFirewall (Azure adds _CL);
    • choose Create a new data collection rule and the endpoint from step 1;
    • upload the sample below, keep the transformation source, and create.

Open the new rule, choose JSON View, and copy its immutableId (dcr- and 32 characters). The stream name is Custom-KorthveilFirewall_CL.

  1. An app for the firewall. Microsoft Entra ID › App registrations › New registration (any name, for example Korthveil firewall). Copy the Directory (tenant) ID and the Application (client) ID. Under Certificates & secrets › New client secret, copy the secret's Value.
  2. Permission to send. Open the data collection rule › Access control (IAM) › Add role assignment › Monitoring Metrics Publisher, and choose the app. A new role assignment can take up to 30 minutes to work.

The sample for step 2 (one row with every column Korthveil sends):

[{"TimeGenerated":"2026-11-20T10:00:00.000Z","Computer":"fw1","Application":"korthveil-firewall","EventType":"rule","EventClass":"rule-deny","Severity":"warning","SeverityLevel":4,"Action":"deny","RuleName":"r7 lan-out","SourceIP":"192.0.2.10","SourcePort":51234,"DestinationIP":"198.51.100.7","DestinationPort":443,"Protocol":"tcp","IPVersion":4,"InInterface":"eth1","OutInterface":"eth0","UserName":"","Domain":"","Category":"","Signature":"","SignatureID":0,"CVEs":"","Outcome":"","VirtualSystem":"","Message":"example"}]

On the firewall:

Field Example
Data collection endpoint (logs ingestion) https://example-dce-a1b2.westeurope-1.ingest.monitor.azure.com
Data collection rule immutable ID dcr-0123456789abcdef0123456789abcdef
Stream name Custom-KorthveilFirewall_CL
Tenant ID (Entra ID) 00000000-0000-0000-0000-0000000000aa
Client ID (the app) 00000000-0000-0000-0000-0000000000bb
Client secret the secret's value
Sign-in host empty (Azure Government: https://login.microsoftonline.us)

The firewall signs in as the app (client credentials) and renews its access token by itself.

A Sentinel destination with the example values, State sending
A Sentinel destination with the example values, State sending

Query in Sentinel: KorthveilFirewall_CL | where EventType == "ips" | project TimeGenerated, SourceIP, DestinationIP, DestinationPort, Signature, Action.

Elastic

In Kibana: Stack Management › API keys › Create API key. Give it the right to write to logs-korthveil*, for example:

{"korthveil": {"index": [{"names": ["logs-korthveil*"], "privileges": ["create_doc", "auto_configure"]}]}}

Copy the Encoded value. (A user name and password work too, instead of an API key.)

On the firewall:

Field Example
Elasticsearch address https://example.es.us-east-1.aws.elastic.cloud:443
API key (encoded) ZXhhbXBsZTpub3QtYS1yZWFsLWtleQ==
Index or data stream logs-korthveil.firewall-default (the default)

Events are Elastic Common Schema documents: source.ip, destination.ip, destination.port, network.transport, network.type (ipv4 or ipv6), event.action, rule.name, user.name, url.domain, observer.ingress.interface.name, and more. They work in Kibana's Discover and in Elastic Security without a pipeline.

An Elastic destination with the example values
An Elastic destination with the example values

QRadar (LEEF) and ArcSight (CEF)

Choose Type: Syslog server, then:

Field QRadar ArcSight and others
Server qradar.example.com arcsight.example.com
Protocol TLS (recommended) TLS (recommended)
Port 6514 6514
Format LEEF 2.0 (IBM QRadar) CEF (ArcSight, and most SIEMs)
  • QRadar: add a log source of type Universal LEEF with the protocol TLS Syslog. Korthveil declares ^ as the LEEF separator, and src/dst carry IPv4 or IPv6.
  • ArcSight: a SmartConnector of type Syslog Daemon reads CEF. IPv4 addresses are in src and dst; IPv6 addresses are in c6a2 (Source IPv6 Address) and c6a3 (Destination IPv6 Address), as the CEF standard defines them. The rule's name is in cs1 (Rule Name).
A syslog destination with Format CEF
A syslog destination with Format CEF

Detection signs and ATT&CK techniques. A detection sign (event type Detection signs, adr/0308) carries its MITRE ATT&CK technique ID and the device's risk score after it:

Format Technique Risk score
CEF cs5 (label MITRE ATT&CK Technique), for example cs5=T1021.002 cfp1 (label Risk Score)
LEEF 2.0 technique=T1021.002 riskScore
JSON "techniques": ["T1021.002"] "riskScore"
Elastic Common Schema threat.framework: MITRE ATT&CK, threat.technique.id: ["T1021"], threat.technique.subtechnique.id: ["T1021.002"] event.risk_score

The sign's kind is the event's class (detection-decoy, detection-lateral-admin, …) and its title the event's name; the device is the source address. A decoy contact is sent once, as its detection sign.

JSON over HTTPS (web hook)

For any tool with an HTTPS endpoint: give the full address, for example https://hooks.example.com/korthveil, and a Bearer token if it needs one. Each request is a JSON array of events, in Korthveil's JSON or, with Format: Elastic Common Schema, as ECS documents.

Step 2: Choose what to send

Each destination has:

  • Send: the audit log, the firewall's log lines, and the system logs (all three by default).
  • Event types: narrow it further:
    • Firewall rule hits (rules with logging on, and the default deny when it is logged);
    • DoS protection and rate limits;
    • Threat list blocks;
    • Intrusion prevention alerts (and web application firewall alerts);
    • Detection signs: every sign of the risk score (decoys touched, lateral movement, exfiltration, tunnels, beacons, the computers' agents, LAN attacks), with its MITRE ATT&CK technique and the device's score (the fields are under QRadar (LEEF) and ArcSight (CEF) above);
    • Destinations: destination awareness (destination.new, destination.held, destination.accepted, destination.refused) and the address actions of the who-and-why card (address.blocked, address.lifted, address.tracked, address.block-requested), with the inside and outside address, port, protocol, group, what was new or done and who acted (docs/guides/WHO-AND-WHY.md);
    • Web and content filter (blocked sites, TLS inspection's content, data loss and cloud app blocks);
    • Sign-ins and sessions;
    • Other audit log entries (commits, account changes);
    • System (services, kernel, add-ins).
  • Minimum severity: for example Warning and more severe sends only warnings, errors and worse. Firewall rule lines carry the level their rule logs at; IPS alerts are error (high), warning (medium) or notice (low); failed sign-ins are warning.
The Event types and Minimum severity of a destination
The Event types and Minimum severity of a destination

Only rules with logging on produce rule events. To send the firewall's blocks, turn on logging on your deny rules (Firewall › Rules). For connections no rule allows (the default deny), press List them too in Monitoring › Traffic log.

Step 3: Check that it works

Open the destination and press Send test event. For an HTTPS destination the answer is the server's: test event accepted by Splunk (or Sentinel, Elastic, the web hook) means it arrived. Look for an event of type test from this firewall. Save and commit first if you just changed the destination.

Send test event: “test event accepted by Splunk”
Send test event: “test event accepted by Splunk”

The list shows each destination's State, and an open destination its counters:

  • sending / connected: all is well.
  • retrying: the SIEM is unreachable or busy (for example HTTP 503); events wait in the queue and are sent when it answers.
  • stopped: credentials refused: the SIEM answered 401 or 403. Nothing is sent until you fix the token, key or app and commit. The last error says what to check.
  • sending, a batch was rejected: the SIEM refused some events (for example HTTP 400, or an Elastic mapping error); those were dropped and counted, the rest go on.
  • Sent, Queued, Dropped, Last success and Last error.
A destination stopped: “Splunk refused the credentials (HTTP 401 …): check the HEC token”
A destination stopped: “Splunk refused the credentials (HTTP 401 …): check the HEC token”

Queue, batches and retries

For HTTPS destinations, open Events per request (default 500), Send at least every (default 5 seconds) and Queue (default 20000 events). While a SIEM is unreachable, events wait in the firewall's memory, up to the queue size; after that the oldest are dropped and counted under Dropped. Retries start after 1 second and wait up to a minute between tries (or as long as the SIEM asks).

The counters are also on the Prometheus endpoint: korthveil_log_export_sent_total, korthveil_log_export_queued, korthveil_log_export_dropped_total, korthveil_log_export_connected.

Outbound filtering

With outbound filtering on (Firewall › Outbound), Korthveil opens the way to each destination by itself: the rule log-export-<name> to the SIEM's address, and for Sentinel also log-export-<name>-signin to the Entra ID sign-in host.

If something goes wrong

What you see What to do
certificate signed by unknown authority The server uses your own CA: import it under System › Certificates & encryption › Certificates and choose it under Trust (CA).
Splunk refused the credentials (HTTP 403 …) The HEC token is wrong or turned off in Splunk.
Entra ID refused the app's sign-in (HTTP 401 invalid_client …) The client secret is wrong or expired; make a new one in the app registration.
Sentinel refused the credentials (HTTP 403 …) Give the app the Monitoring Metrics Publisher role on the data collection rule, and wait up to 30 minutes.
Sentinel rejected the batch (HTTP 404 …) The DCR immutable ID or the stream name is wrong, or the endpoint is in another region than the rule.
Elastic refused 3 of 500 documents (mapper_parsing_exception …) The index has a mapping that conflicts with ECS; use the default data stream or a new index.
Many Dropped The SIEM was unreachable longer than the queue lasts; raise Queue, or narrow Event types and Minimum severity.

Download as PDF All guides