SIEM, log and BI export
After every publication, AuditGraph can send the same four record types to the tools your team already uses. Or your dashboards can read them from the export API.
- Type
- Destination (push), or read API (pull)
- Who
- An Admin, under Administration › API & Exports
- Plans
- Professional, Enterprise
- Writes to your cloud
- Never. AuditGraph only writes rows into the destination you configure.
- Push destinations
- Microsoft Sentinel / Azure Monitor Logs, Splunk (HTTP Event Collector), Datadog Logs, Elastic, Sumo Logic
- Pull clients
- Grafana (Infinity plugin), Power BI, Excel, your own scripts
- Templates
- Ready-made dashboards, workbooks, rules and queries for every tool, under API & Exports › Templates
What is sent
Section titled “What is sent”Every destination receives the same rows. They are named after their Log Analytics tables:
| Table | One row per | Typical use |
|---|---|---|
AuditGraphPosture_CL |
Directory publication: identity counts, Tier-0 holders, risk levels, open findings, coverage and confidence, changes since the last publication | Posture dashboards and trends |
AuditGraphFinding_CL |
Finding first seen (NEW) or resolved (RESOLVED) at a publication |
Alerting on new critical findings |
AuditGraphRisk_CL |
High and very high risk identity, and every Tier-0 holder, in ranking order | Risk watch lists |
AuditGraphChange_CL |
Identity, grant and privilege change at a publication, plus CONNECTION_TEST rows from Test |
Alerting on new Tier-0 grants and privilege escalation |
Every row starts with the same columns: TimeGenerated, RecordId, SchemaVersion, OrgId,
DirectoryId, DirectoryName, PublicationSeq, IsBaseline and PortalUrl.
IsBaseline = truemarks a directory’s first publication, which is the initial inventory. Exclude it from alert rules, or your first sync raises an alert for everything.RecordIdis stable. Use it to remove duplicates if a retried batch arrives twice.- Severity uses NIST SP 800-30 levels:
CRITICAL,HIGH,MEDIUM,LOW,INFORMATIONAL,UNKNOWN. - Not collected is not zero. A metric AuditGraph did not collect arrives as
null, and the pull API returns 404 until a publication has produced the data. An empty tile means “not observed”, not 0.
The current export schema version is 1.0. A schema change always comes with a new version.
Microsoft Sentinel and Azure Monitor
Section titled “Microsoft Sentinel and Azure Monitor”AuditGraph writes the four tables into your Log Analytics workspace through the Azure Monitor Logs Ingestion API. No secret is created, stored or shared. You admin-consent the AuditGraph exporter app in your tenant, and grant it Monitoring Metrics Publisher on one data collection rule (DCR) only. It can write to the four AuditGraph streams and nothing else.
Before you begin
Section titled “Before you begin”- A Log Analytics workspace, with or without Sentinel.
- On the workspace’s resource group: Contributor (to create the tables, DCE and DCR) and Owner or User Access Administrator (for the role assignment).
- A Global Administrator or Privileged Role Administrator, for the one-time admin consent.
- The workspace’s tenant must be one of your organization’s connected Microsoft Entra directories.
Set up the export
Section titled “Set up the export”-
Admin-consent the exporter app.
Go to Administration › API & Exports › Azure Monitor & Sentinel › Add integration, and select Grant admin consent to the AuditGraph exporter app.
Result: when you come back, the page says Exporter app consented.
-
Find the exporter’s service principal in your tenant.
Terminal window az ad sp show --id <exporter-app-client-id> --query id -o tsv -
Deploy the template.
Use the template from Templates (Bicep or ARM JSON). It creates the four tables, a data collection endpoint (DCE), a DCR, and the Monitoring Metrics Publisher role assignment on that DCR:
Terminal window az deployment group create \--resource-group <resource-group> \--template-file main.bicep \--parameters workspaceName=<workspace> location=<workspace-region> \dataCollectionEndpointName=<dce-name> dataCollectionRuleName=<dcr-name> \exporterServicePrincipalObjectId=<object-id-from-step-2>Optional parameters:
retentionInDays(default 90) andtotalRetentionInDays(default 365). -
Enter the deployment outputs in AuditGraph.
Read the outputs (
az deployment group show … --query properties.outputs), and enter them in AuditGraph: Your Microsoft Entra tenant ID, Logs ingestion endpoint (DCE) and Data Collection Rule immutable ID. Then save. -
Send a test.
Select Test.
Result: one
CONNECTION_TESTrow arrives inAuditGraphChange_CL. -
Import the Sentinel content (optional).
From Templates, import the AuditGraph analytic rules, hunting queries and workbook. You need Microsoft Sentinel Contributor. The rules are:
Rule Severity New critical finding High New Tier-0 standing grant High Privilege escalation High Workload identity signing in from a new network Medium The rules run hourly, exclude baseline publications, and remove duplicates by
RecordId. Seven hunting queries cover Tier-0 holders over time, rising risk, reachability trends, resolved findings, removed Tier-0 grants, very high risk workload identities, and new identities that are already privileged.
Test the export
Section titled “Test the export”Run this in Log Analytics:
AuditGraphChange_CL| where ChangeType == "CONNECTION_TEST"| top 1 by TimeGeneratedAfter the next publication, AuditGraphPosture_CL has one row per directory.
Remove the export
Section titled “Remove the export”Remove the role assignment on the DCR, or delete the AuditGraph exporter enterprise application. Either one stops the export at once. Then delete the integration in API & Exports.
Splunk, Datadog, Elastic and Sumo Logic
Section titled “Splunk, Datadog, Elastic and Sumo Logic”These destinations need a credential that you create in the destination tool. You enter it once in AuditGraph, which stores it in a key vault. It is never displayed or returned again. To change it, replace it.
Configure each one under Administration › API & Exports › SIEM & observability › Add integration.
You provide: the HEC URL (https://<host>[:8088]/services/collector/event), an optional
Index, and the HEC token.
- Create an index, for example
auditgraph(Settings › Indexes › New Index). - Settings › Data inputs › HTTP Event Collector › New Token. Name it
auditgraph, and leave indexer acknowledgement off. Allow the indexauditgraph, and set it as the default index. Make sure HEC is enabled on port 443 or 8088 with SSL. - Install the
props.conffrom Templates on your search heads. On Splunk Cloud, create the four source types withKV_MODE = jsoninstead. - Enter the URL, index and token in AuditGraph, and save.
- Select Test. An event with
ChangeType=CONNECTION_TESTappears with sourcetypeauditgraph:change. - Import the Classic or Dashboard Studio dashboard from Templates, and set its Index input.
Source types: auditgraph:posture, auditgraph:finding, auditgraph:risk, auditgraph:change.
Remove duplicates with dedup RecordId.
You provide: the Datadog site (US1, US3, US5, EU1, AP1 or US1_FED), optional Tags, and a Datadog API key (Organization settings › API keys).
- Enter them in AuditGraph, save, and select Test. A
CONNECTION_TESTlog appears with tagauditgraph_table:AuditGraphChange_CL. - After the next publication, create the facets and measures listed in the Datadog template
(for example
@auditgraph.Severity,@auditgraph.DirectoryNameand@auditgraph.Tier0Standing). - Dashboards › New Dashboard › Import dashboard JSON, and paste the template.
Logs arrive with source:auditgraph and service:auditgraph, with the row under the auditgraph
attribute.
You provide: the Elasticsearch endpoint, an optional Index prefix (default auditgraph),
and an API key (encoded).
- Create an API key limited to
auditgraph-*, withcreate_docandauto_configure(orcreate_index) privileges. - Enter the endpoint, prefix and key in AuditGraph, save, and select Test.
- In Kibana, create a data view for
auditgraph-*with timestamp fieldTimeGenerated.
Indices: auditgraph-posture, auditgraph-findings, auditgraph-risk, auditgraph-changes. Every
document is indexed with _id = RecordId, so retries never create duplicates. Example query, for
new critical findings:
ChangeType : "NEW" and Severity : "CRITICAL" and IsBaseline : falseYou provide: the HTTP Source URL. The URL itself is the credential.
- Manage Data › Collection › Add Collector › Hosted Collector › Add Source › HTTP Logs & Metrics. Leave Source Category empty: AuditGraph sets it for each record type.
- Copy the source URL into AuditGraph, save, and select Test. A
CONNECTION_TESTrecord appears inauditgraph/changes.
Source categories: auditgraph/posture, auditgraph/findings, auditgraph/risk, auditgraph/changes.
Sumo Logic can store a retried record twice, so remove duplicates with | dedup by RecordId.
These four destinations can also subscribe to the notification events, which arrive as CloudEvents 1.0 envelopes rather than table rows.
Grafana, Power BI and Excel (pull)
Section titled “Grafana, Power BI and Excel (pull)”Your tool reads AuditGraph’s read-only export API with an API key.
-
Create an API key.
Under Administration › API & Exports › API keys, create a key with the scope
export:read. That key can read only/v1/export/*. To limit it further, give it a directory scope. Copy the key when it is shown. -
Send the key with each request.
Use the header
X-API-Key: ag_…(orAuthorization: Bearer ag_…). -
Import the template for your tool.
From Templates:
- Grafana (10.4 or later, with the Infinity datasource plugin): a posture dashboard with stats, trends, top risks and compliance.
- Power BI Desktop: a Power Query M script and a documented report layout.
- Excel: a Power Query M script.
Endpoints. The main endpoints are GET /v1/export/snapshot (current posture) and
GET /v1/export/timeseries?metric=<key>&from=…&to=… (one point per publication). The API reference
tab lists every trend metric. /v1/export/snapshot returns 304 Not Modified to If-None-Match
until the next publication, so polling it is cheap.
Test it:
curl -s -H "X-API-Key: $AUDITGRAPH_KEY" https://<your AuditGraph host>/v1/export/snapshot | head -c 400A 404 before the first publication is expected. Data appears after it.
Remove it: revoke the key under API keys.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause | Fix |
|---|---|---|
| Consent was not granted after the exporter consent | The account was not a Global Administrator or Privileged Role Administrator, or consent was declined. | A Global Administrator or Privileged Role Administrator tries again. |
| Azure Monitor test fails with an authorization error | Monitoring Metrics Publisher is missing on the DCR, or was assigned to the wrong principal. | Check the role assignment on the DCR against the exporter’s service principal object ID. |
| Azure Monitor integration is refused when saved | The tenant ID is not one of your organization’s connected Entra directories. | Use the tenant of a connected directory. |
| Splunk / Datadog / Elastic / Sumo test fails | Wrong URL, region or site, an expired or revoked token, or a firewall. | Check the delivery log for the HTTP status, then replace the credential if needed. |
| Rows arrive twice | A batch was retried. | Remove duplicates by RecordId. Elastic does this for you. |
| Every row alerts after the first sync | The baseline was not excluded. | Filter on IsBaseline == false. |
The delivery log of every integration shows each batch and each attempt. Exports are queued after each publication and retried with backoff.