Audit logs for SaaS

Audit logs your customers can actually see

Add enterprise-grade audit logs to your SaaS with one API call. Query via REST, enforce PII redaction, and stay compliant — without building it yourself.

app/api/events.ts
import { LogStitch } from '@logstitch/sdk';
 
const logs = new LogStitch('pk_live_...');
 
await logs.track({
action: 'document.shared',
actor: { id: 'user_123', name: 'Alice' },
tenant_id: 'acme_corp',
});

Why LogStitch

Everything you need to ship audit logs — nothing you don't.

5-Minute Integration

Install our SDK, add your API key, call one function. That's it. Production-ready audit logs in less time than it takes to write a README.

Multi-Tenant by Default

Every event is scoped to a tenant. Generate tenant API keys so your customers can query their own logs via REST — no extra code needed.

PII Redaction Built-in

Credit cards, SSNs, emails, and secrets are automatically detected and scrubbed before storage. No config needed.

Build this in minutes

Use our API to give your customers full visibility into their account activity.

app.acme.com/settings/audit-log

Audit Log

Search events...
Filter
document.sharedAlice ChenQ4 Report.pdf
2 min ago
member.invitedBob Smithcarol@acme.com
5 min ago
permission.updatedAlice ChenEngineering Team
12 min ago
document.createdCarol DavisAPI Spec v2.md
18 min ago
member.removedBob Smithdave@acme.com
1 hr ago
setting.changedAlice ChenSSO Configuration
2 hr ago

What your customers see — built with a single API call and a few lines of React.

Fetch events

Generate a viewer token server-side, then fetch your tenant's events from the client.

app/api/audit-log/route.ts
const { token } = await logstitch.viewerTokens.create({
tenant_id: orgId,
});
 
const res = await fetch('/api/v1/events', {
headers: { Authorization: `Bearer $${token}` },
});

Render the UI

Map over events and render them however you want. Full control, zero lock-in.

components/audit-log.tsx
{events.map((e) => (
<div key={e.id}>
<Badge>{e.action}</Badge>
<span>{e.actor.name}</span>
<time>{e.occurred_at}</time>
</div>
))}

Three steps to production

From zero to customer-facing audit logs in under 10 minutes.

1

Install & Configure

Install the SDK and initialize with your API key.

terminal
npm install @logstitch/sdk
2

Send Events

Track any action in your app with a single function call.

app/actions.ts
await logstitch.track({
action: 'invoice.paid',
actor: { id: userId },
tenant_id: orgId,
});
3

Query Logs via API

Fetch events with filtering, pagination, and tenant scoping. Build any UI you want.

app/audit-log.ts
const events = await logstitch.events.list({
tenant_id: 'acme_corp',
category: 'mutation',
});

Built for production

Every feature you need to ship enterprise-grade audit logs.

API Accessible Logs

Query, filter, and export your audit logs programmatically via REST API.

Full-Text Search & Filtering

Search across all event fields. Filter by action, actor, tenant, and date range.

Immutable Event Storage

Events are append-only and content-hashed. Tamper-evident by design.

Automatic PII Redaction

Credit cards, SSNs, and secrets are detected and scrubbed automatically.

Visibility Tiers

Control exactly which events and fields each customer tier can see.

API Key Management

Create, rotate, and scope API keys with granular permissions.

Simple, transparent pricing

Start free. Scale as you grow. No surprises.

Free

$0

Sandbox tier. Integrate and demo.

Start Free
Events / month5,000
OverageHard cap
Projects1
Tenant API Keys5
Retention24 hours
PII RedactionBuilt-in only
Tenant API Rate Limit10 calls/day
Custom Domain
SupportDocs
Most Popular

Pro

$29/mo

Full production tier for growing teams.

Start Free Trial
Events / month500,000
Overage$0.40 / 1K events
Projects5
Tenant API Keys100
Retention90 days
PII RedactionCustom rules
Tenant API Rate Limit10K calls/day
Custom Domain
SupportEmail

Enterprise

Custom

Custom everything. SLAs and dedicated support.

Contact Sales
Events / monthCustom
OverageCustom
ProjectsUnlimited
Tenant API KeysCustom
RetentionCustom
PII RedactionCustom rules
Tenant API Rate LimitCustom
Custom Domain
SupportDedicated

Ship audit logs today, not next quarter

5,000 events/month free. No credit card required.