ConductScience Sequences
Contents

Installation guide · Run the service

Audit export for a SIEM

The audit log the service keeps, what it holds and how to export it for a SIEM.

With sign-in on, the service keeps its own audit log, and an admin can export it with every case's log as JSON lines for a SIEM, a UTC day or any time range at a time. Every event in these logs carries the SHA-256 hash of the event before it and its own hash, so a changed, missing or reordered event breaks the chain from that event on. The export carries the hashes, so you can check them.

What the log holds

The service's log is audit/events.jsonl on the data volume, with its last event named in audit/head.json. It holds:

  • Each sign-in, refused sign-in, failed sign-in and sign-out: the time, the account as the user claim names it, its ID at your provider, and for a refused or failed one the reason in fixed words. A refused sign-in keeps at most 100 characters of the name your provider sent. A failed one names no account, since none was confirmed.
  • A failed sign-in only when your provider's answer comes back to a sign-in this server started: the request to /api/auth/callback must carry the state the server gave the browser at the start. Anyone can call that address, so a call without the state is not noted. During a burst, the rest of a minute's failed sign-ins are noted as one signin.failed.suppressed event with their count.
  • Each API token made or revoked, by the token's ID, with who revoked it. Never the token or its name.
  • Each start: the release, the license's ID, plan, state and last day, each setting in Settings that is set, and the names of those that changed since the last start. A secret, a key, or a setting that names a secret's file shows as set, and an address shows without its user name, query or fragment.
  • Each change to the invite file, when the service next reads it: the entries added and removed.
  • Each export through the API, with the admin who made it and what it held.
  • Each case handed to another account: the case's ID, and who handed it to whom, as the user claim names them and by their IDs at your provider. The case's own log records it too.
  • Each organization started or renamed, each member added or removed and each role changed: the organization's ID, who made the change and the member, as the user claim names them and by their IDs at your provider. Never the organization's name. A case's own log records each share and assignment.
  • On a coordinator, each worker that joins, with its name, the searches it runs at a time, its threads and the copies that match; each that leaves; each that is lost, with the IDs of the searches it ran; and each refusal, with the reason in a word. A request to the worker port without the worker key names no worker. During a burst, the rest of a minute's refusals are noted as one worker.refused.suppressed event with their count.
  • Each deletion of working files (see Working files), with the count of files and bytes and never their names or what they held: files.deleted for a job's files at its final state, with the job's ID, kind and state, and for what a stop left, at the next start; session.ended for a session that ended with working files, with the session's ID, its account and why it ended: signed-out, expired, or replaced when the browser signed in as another account.
  • Each look at the records that removed some (see How long records are kept): the days, the count of searches, exact alignments, combined searches, portfolio exports and batches removed, and their bytes.
  • Each case an admin deletes: the admin, the case's ID, its owner's ID at your provider, the number of events in the case's log and the SHA-256 of the last one, the count of searches deleted with it and their bytes. The case's own log goes with the case.

It holds no IP addresses, queries, sequences or results. Searches, page views and the container's commands (such as load or sample add) are not in it; the usage page counts searches. The service only adds to the log, with one exception: a last line that a stop cut off before its end, which never became an event, is taken off by the next event. Nothing rotates or deletes the log, and it grows by about 300 bytes a sign-in. audit/head.json is a cache of the log's last line: after a stop between an event's line and head.json, the check below says the log's head does not name its last event until the next event, which follows the line. Each case's log, with its head in the case's case.json, and each account's join log work the same way. With sign-in off there is no log.

Export the log

To export a day, with an admin's API token (see API tokens for programs):

curl -H "Authorization: Bearer <token>" -o sequences-audit-2026-11-12.jsonl \
  "https://sequences.example.org/api/admin/audit.jsonl?day=2026-11-12"
  • day is a UTC date. For another range, give from and to instead, as times with a time zone, such as from=2026-11-12T00:00:00Z&to=2026-11-12T12:00:00Z. from is in the range and to is not.
  • Only the people in BIOSEQUENCE_ADMINS can export. For anyone else, and with sign-in off, the address does not exist.
  • The container's audit-export command writes the same lines from the data volume, which it only reads, so it can run beside the service, from a scheduled job on the server. The service's log does not note these exports. The command exits with 1 after writing when a log's chain is broken:
docker run --rm -v sequences-data:/data:ro conductscience/sequences:<version> audit-export --day 2026-11-12 \
  > sequences-audit-2026-11-12.jsonl

Each line is one JSON object, and its record says what it is:

  • event: one event. log names its log: service, case/<case ID>, or joins/<folder> for an account's applicant joins. For the service's log, event is the event as stored. For a case or joins log it keeps the event's number, time, user, type, IDs, counts and hashes, and withheld names the fields left in the log. Case names, claim text, notes, reasons, the words of summaries and other text stay out, since claims pasted into a case can be from an application that is not yet published.
  • chain, after each log's events: first and last, the numbers of the events given; prev, the hash of the event before first, or null at the log's start; head, the last event the log's record names; and check, the service's check of the whole log as it exported it, with ok false and the first broken event when it fails.
  • export, last: the range, when the file was made, and the numbers of events, logs and broken logs, with the logs it could not read in skipped.

A log's events in a file run from its first event in the range to its last, so they always follow one another in its chain, and the next day's file goes on from there.

Guide version 1.63.0 · For Sequences 0.155.0