Skip to content

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

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 = true marks a directory’s first publication, which is the initial inventory. Exclude it from alert rules, or your first sync raises an alert for everything.
  • RecordId is 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.


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.

  • 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.
  1. 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.

  2. Find the exporter’s service principal in your tenant.

    Terminal window
    az ad sp show --id <exporter-app-client-id> --query id -o tsv
  3. 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) and totalRetentionInDays (default 365).

  4. 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.

  5. Send a test.

    Select Test.

    Result: one CONNECTION_TEST row arrives in AuditGraphChange_CL.

  6. 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.

Run this in Log Analytics:

AuditGraphChange_CL
| where ChangeType == "CONNECTION_TEST"
| top 1 by TimeGenerated

After the next publication, AuditGraphPosture_CL has one row per directory.

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.


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.

  1. Create an index, for example auditgraph (Settings › Indexes › New Index).
  2. Settings › Data inputs › HTTP Event Collector › New Token. Name it auditgraph, and leave indexer acknowledgement off. Allow the index auditgraph, and set it as the default index. Make sure HEC is enabled on port 443 or 8088 with SSL.
  3. Install the props.conf from Templates on your search heads. On Splunk Cloud, create the four source types with KV_MODE = json instead.
  4. Enter the URL, index and token in AuditGraph, and save.
  5. Select Test. An event with ChangeType=CONNECTION_TEST appears with sourcetype auditgraph:change.
  6. 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.

These four destinations can also subscribe to the notification events, which arrive as CloudEvents 1.0 envelopes rather than table rows.


Your tool reads AuditGraph’s read-only export API with an API key.

  1. 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.

  2. Send the key with each request.

    Use the header X-API-Key: ag_… (or Authorization: Bearer ag_…).

  3. 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:

Terminal window
curl -s -H "X-API-Key: $AUDITGRAPH_KEY" https://<your AuditGraph host>/v1/export/snapshot | head -c 400

A 404 before the first publication is expected. Data appears after it.

Remove it: revoke the key under API keys.


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.