Stream the audit log to your SIEM

Every audit event, within about a minute, to Splunk, Datadog or any HTTPS webhook.

On this page

Before you begin

  • An EntiPath owner account.
  • Someone who runs your SIEM, to set up where the events arrive.
  • An https endpoint on the public internet.
  • The Enterprise plan.

It takes about 10 minutes.

EntiPath sends every audit event to your SIEM within about a minute of recording it: sign-ins, plan approvals and applies, setting changes, access review decisions. If a destination is down, events wait and are retried.

Note. EntiPath sends only to https addresses on the public internet, and never follows redirects.
1

Choose where it goes

In your SIEM

Get what the kind you’ll use needs:

Splunk HTTP Event Collector
The HEC address, ending in /services/collector/event, and a HEC token. Optionally an index the token may write to. Events arrive with sourcetype entipath:audit.
Datadog Logs
Your Datadog site (datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, datadoghq.eu, ap1.datadoghq.com, ap2.datadoghq.com, ddog-gov.com) and an API key. Events arrive with source and service entipath, tagged with the workspace and action.
Webhook
Any https address that accepts POSTs, such as Sentinel through a Logic App, Elastic, Sumo Logic or Panther. Each request is signed so your receiver can check it.
2

Add the destination

In EntiPath

  1. Go to Settings › Log streaming and click Add destination.
  2. Choose Webhook, Splunk HTTP Event Collector or Datadog Logs.
  3. Fill in the fields for that kind:
    Name
    A name for the destination, such as Security SIEM
    HEC endpoint (Splunk)
    The HEC address, ending in /services/collector/event
    HEC token (Splunk)
    The HEC token
    Index (Splunk, optional)
    An index the token may write to
    Datadog site (Datadog)
    Your Datadog site
    API key (Datadog)
    A Datadog API key
    Endpoint (Webhook)
    Your receiver’s https address
  4. Click Add destination.For a webhook, EntiPath shows a signing secret, once.
  5. For a webhook, copy the Signing secret into your receiver, then click I saved it.
The Stream the audit log dialog in EntiPath, with the three kinds of destination and the Add destination button
Note. A workspace can have up to five destinations. Tokens and keys are stored encrypted and never shown again. The signing secret is what proves each webhook request comes from EntiPath.
3

Send a test

In EntiPath

  1. Click Send test on the destination.EntiPath says whether it was accepted, or what your endpoint answered.
Note. You can send a test at most once every 10 seconds. Once it streams, each destination also gets a daily heartbeat event, so your SIEM can alert when EntiPath events stop.

Checking webhook requests

In your receiver

  1. Read the X-EntiPath-Timestamp header (Unix seconds) and the X-EntiPath-Signature header.
  2. Compute the hex HMAC-SHA256 of {timestamp}.{body}, keyed with the signing secret, and put v1= in front of it.
  3. Reject the request if that doesn’t match the signature header, or if the timestamp is more than five minutes old.
  4. Store the events, then answer with a 2xx status.

The body is {"events": [...]}, up to 100 audit events per request, oldest first.

Example check, in Node.js
const ts = req.headers['x-entipath-timestamp'];
const sig = req.headers['x-entipath-signature'];
const want = 'v1=' + crypto.createHmac('sha256', secret).update(`${ts}.${rawBody}`).digest('hex');
const fresh = Math.abs(Date.now() / 1000 - Number(ts)) < 300;
const ok = fresh && sig.length === want.length && crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(want));

Day to day

Pause and resume

Pause holds the events already waiting until you click Resume. Events recorded while it’s paused aren’t sent to it.

Replace a token, key or secret

Replace token (or Replace key) swaps a Splunk or Datadog credential. For a webhook, New secret replaces the signing secret at once, so update your receiver straight away.

When a destination fails

After three failed requests in a row a destination shows Failing. EntiPath keeps retrying, waiting longer each time, for up to a week. After a week of failures it pauses the destination, drops the events it couldn’t send, and records that in the audit log.

Delete a destination

Deleting a destination sends it a last notice (unless it’s paused), then stops. Events still waiting are discarded; the audit log itself is kept.

Troubleshooting

Find the message EntiPath showed. Each one says why it happens and how to fix it.

“… resolves to a private or reserved address …” or “… could not be resolved”

The address isn’t on the public internet, or doesn’t resolve. Internal or private addresses aren’t allowed.

To fix it
  1. Use your SIEM’s public https address.
“Only https:// addresses are allowed”

EntiPath sends only to https addresses.

To fix it
  1. Use an https:// address.
“Put credentials in the token field, not in the address”

The address carries a user name or password. Splunk and Datadog take their token or key in its own field, and a webhook is checked with its signing secret instead.

To fix it
  1. Take the user name or password out of the address.
“The endpoint answered 401 (check the token or API key)”

Your endpoint refused the token or API key.

To fix it
  1. Check it’s current and allowed to write (for Splunk, to the index you set).
  2. Click Replace token (or Replace key) and enter it.
“The endpoint answered 404 (check the address)”

Nothing answered at that path.

To fix it
  1. For Splunk, use the full HEC address, ending in /services/collector/event.
  2. For Datadog, check the site matches your account.
“… (redirects are not followed)”

The address redirects somewhere else, and EntiPath doesn’t follow redirects.

To fix it
  1. Use the final address.
“The endpoint did not answer within … seconds”

The endpoint took too long to answer. EntiPath retries on its own.

To fix it
  1. Check the endpoint is up and reachable from the internet.
A destination shows Failing

The destination’s last error says what went wrong. Waiting events are retried on their own schedule, up to 6 hours apart.

To fix it
  1. Fix what the last error says.
  2. Click Send test to confirm.
  3. To send the waiting events at once, click Pause, then Resume.
A destination was paused after a week of failures

After a week of failures EntiPath paused it and dropped the events it couldn’t send. While it’s paused, new events aren’t sent to it, but the audit log in EntiPath still has them all.

To fix it
  1. Fix the cause.
  2. Click Resume.
  3. If your SIEM needs the missing days, export them from Settings › Audit log.
“A workspace can stream to up to 5 destinations”

A workspace can stream to up to five destinations.

To fix it
  1. Delete one first.

Still stuck? Email support@entipath.com with your workspace address and the message EntiPath showed.