Skip to main content
Introducing packages.sweber.dev
All posts
Release1 min read

Logarithm Pro 0.8.0 released

Anomaly detection that learns what is normal for each tenant, so quiet customers get sensitive alerts and busy customers get fewer false alarms.

By Seya Weber

Logarithm Pro 0.8.0 is out and available to all Pro customers. The free packages stay at 0.5.0. Nothing breaks: 0.7.0 code keeps working as it is, and anomaly detection behaves as before unless you turn the new option on.

Anomaly detection that learns

Since 0.3.0, detectAnomalies() flags actors with unusually many exports, deletions or failed logins. The weak spot was the fixed threshold: 10 exports per hour is a burst for a five-person team and a normal morning for a large customer. Pass baseline and Logarithm learns what is normal per rule and tenant:

await detectAnomalies({
  store,
  sinks: [slackSink({ webhookUrl: process.env.SLACK_WEBHOOK_URL! })],
  baseline: true, // or { days: 30, sigma: 3, minThreshold: 5 }
  record: true,
})

For every rule and tenant it looks at the previous 14 days, counts events per subject and window, and flags a subject whose count exceeds the mean plus three standard deviations, never below three events. A quiet tenant, where people export once per hour, is alerted at three exports. A busy tenant, where people export twenty times, only far above that.

Only active windows count, so the baseline describes how people behave when they use a feature. New tenants without enough history (20 samples by default) keep the fixed threshold and stay covered. Every alert carries the learned threshold and the baseline behind it: mean, standard deviation, sample count and days, so your security team can see why it fired.

Update

pnpm add @weber-development/logarithm-export@latest @weber-development/logarithm-integrity@latest @weber-development/logarithm-retention@latest

Logarithm Pro is available on the package page and is part of the Compliance Bundle.

Package in this post

Logarithm

A self-hosted audit log for SaaS apps: who changed what, and when. Field-level diffs in your own Postgres or SQLite, and a ready React view for your customers' admins.

pnpm add @sweberdev/logarithm @sweberdev/logarithm-react
View package

Related posts

Release

Logarithm Pro 0.9.1 released

A security review of the Pro packages found two problems in export. An evidence pack with its signature removed no longer passes verification, and the download endpoint rejects odd format names.

Logarithm
Release

Logarithm 1.0 released

The self-hosted audit log for SaaS apps is stable. A frozen API, a verified accessible viewer, a 10 million event load test, a security review and tamper evidence with independently checkable timestamps.

Logarithm