Published: 19 nov 2025
Author: Roeland Braam
Updated: 17 jan
When using Elastic as a single pane of glass for executing security monitoring, all other security products and cloud environments should be connected. This makes it easier for analysts to maintain an overview of alerts and perform incident triage.
Regarding Azure Sentinel, there is a supported Elastic integration for connecting to Azure Event Hub, which can be used to retrieve events from Sentinel. However, this integration comes with several challenges:
These challenges often result in the connection becoming unavailable, which makes troubleshooting difficult. Several of our customers have experienced this repeatedly, causing Sentinel alerts to go unprocessed and creating a risk that attacks may go undetected.
The article proposes using the Azure REST API as an alternative method for retrieving Azure Sentinel alerts.
Using the Azure REST API has some advantages:
The solution uses Node-RED to automate workflows and establish the connection between Sentinel REST API and Elastic.
The setup requires gathering specific information from the Azure Sentinel tenant including client private key, JWT KID, clientId, tenantId, scope, and workspaceId.
Commands provided for certificate configuration:
openssl x509 -in cert.pem -outform der | openssl dgst -sha1 -binary | base64 | tr '+/' '-_' | tr -d '='
awk 'NF {sub(/\r/, ""); printf "%s\\n",$0}' privatekey.pem
The article details 12 function nodes including inject nodes with tenant information, JWT token creation, token signing, payload preparation, and Elasticsearch ingestion.
Code samples are provided for:
The solution converts Azure Sentinel alerts and incidents into NDJSON format for bulk ingestion into Elasticsearch using an ingest pipeline.