Loading the documentation…

Health, monitoring and logs

DataMind OS and the DataMind Installer are separate stacks. Check each one on its own, and read their logs in different places. This page covers both health checks, where every log goes, how much of it the screens show, how long it is kept, and the record the DataMind Installer keeps of every action it runs.

Check the health of each layer

CheckWhat it provesHealthy answer
Status, open a service, read its Health rowWhether that DataMind OS container passes its own Docker health checkhealthy. A service without a health check has no Health row: read the state beside its name
curl -sS http://localhost:8000/api/health on the hostWhether the DataMind Installer runs and reaches its own database{"status":"ok","db":"up"}
docker compose ps -a in the install directoryThe state of the DataMind Installer's own containersIts database and backend containers are up and (healthy); its one-shot migration container exited with code 0

The check answers without sign-in, so you can poll it from your own monitoring tools. Run the Compose commands in the directory that holds the DataMind Installer's Compose file; What lives on the host names it and everything else the Installer keeps on the host.

What a failure looks like

What you seeWhat it means
HTTP 503 with "message":"Database connection failed"The DataMind Installer runs but cannot reach its database container. Its log shows Health check failed — DB unreachable: and the reason. The response itself never carries the raw error
curl cannot connectThe backend container is not running, or is restarting. Read docker compose logs --tail=100 backend
A service's Health row is not healthyThat DataMind OS container fails its health check. Read its log on Service status

The full 503 body:

json
{"success":false,"statusCode":503,"message":"Database connection failed","error":"Service Unavailable","timestamp":"…","path":"/api/health"}

For causes and fixes, see Troubleshooting.

Where the logs go

LogWhere it goesHow long it lasts
The DataMind Installer's logdocker compose logs backend in the install directory. A failed outbound call logs its host, the reason and the raw errorSee Rotate the container logs
Each DataMind OS service's logThat container's standard output, streamed into Status when you open the serviceAs long as Docker keeps that container's log
A job's outputStatus → Job Logs. Every Compose line of a job is also in the DataMind Installer's log, prefixed compose[<job id>]See How long job history is kept
The deployment historyThe DataMind Installer's database: every action and who ran it. It is part of the database dumpAs long as the database

DataMind OS includes Fluent Bit, which ships the container logs on the host to VictoriaLogs while DataMind OS runs. That includes the DataMind Installer's log and every job's output. The combined feed of every container, with a file download, is Installation logs. Inside DataMind OS, people with View Container Logs read the same container logs in Observability > Logs > Platform, with search, a histogram, a live view and export: Platform container logs.

How long job history is kept

Job Logs shows a job until one hour after it ends. After that, its Compose lines remain in the DataMind Installer's log (compose[<job id>]) and in VictoriaLogs. The DataMind Installer deletes stored job events older than 30 days each time it starts. A job that was running when it restarted is closed with DataMind Installer restarted while this job was running.

A job that writes no output for a set time stops with No output for <n> minutes — aborted as hung. The time is 15 minutes, and longer for Apply changes when a service's health check needs more time. While a job runs, its stream carries a heartbeat about every 15 seconds.

How much of a log stays on screen

The viewWhat it holds
A service's log on StatusOpens with about its last 200 lines per container, then follows live. Each open stream keeps about 500 lines
Job LogsKeeps about 2,000 lines of the job's output
An image pull in Job LogsKeeps about 200 progress lines per service

Downloaded files have no such cap; see Installation logs.

The deployment history and audit trail

The DataMind Installer records every action it runs. The record is admin-only. It lists the newest action first and comes in pages. No screen in the DataMind Installer shows it: an admin reads it through the DataMind Installer's API, GET /api/deployment/actions, with limit and offset to page through it. Each entry shows:

FieldWhat it shows
The actionStart, Stop, Restart or Terminate of DataMind OS; an image pull; Update; Apply changes; a host migration; a cancelled job; or the DataMind Installer's own update
Its statusstarted while it runs, then completed or failed
The services it targetedThe services the action resolved. Empty when the Installer could not read the service topology, for example before a first install or when the Docker daemon is not reachable. Older entries can be empty as well
The exit codeThe exit code of the underlying Compose process. Empty while the action runs, or when it never produced one
The jobThe live job the action started. Jobs are discarded about an hour after they end, so an older entry points to nothing
Who ran itThe acting admin's email, resolved when the record is read. Actions the DataMind Installer takes by itself have no user
WhenWhen the action started, and when it last changed, which is its finish time once it has ended

How fresh each view is

Each view refreshes on its own; none of these needs a page reload.

ViewRefreshes
Status and its service statesEvery 10 seconds, and every 3 seconds while services start
A lost connection to the DataMind InstallerRetried every 3 seconds until it answers
Stale-service badges (settings saved but not yet applied)Every 60 seconds, with a first check as soon as the screen opens
Image update checks, and the check for a newer DataMind InstallerEvery 30 minutes

Rotate the container logs

The DataMind Installer's Compose file caps each of its containers at 5 log files of 20 MB, in the uncompressed json-file format that the DataMind OS log pipeline reads. A container takes the setting when it is created.

Check it worked. Run this against the Installer's backend container; take its name from docker compose ps:

bash
docker inspect <container> --format '{{.HostConfig.LogConfig.Type}} {{json .HostConfig.LogConfig.Config}}'
text
json-file {"compress":"false","max-file":"5","max-size":"20m"}

If the output shows no max-size, the install directory still has an older Compose file. Update the DataMind Installer from the top-bar pill, as in Updating: it installs the current Compose file and recreates the containers.

Questions, answered

Where are the logs?

In each container's Docker log, and in VictoriaLogs while DataMind OS runs. See Where the logs go.

Does the DataMind Installer's health check prove DataMind OS is up?

No. It proves the DataMind Installer reaches its own database. Check each service's Health row in Status.

How long is job history kept?

See How long job history is kept.

Are container logs rotated?

Yes. See Rotate the container logs.

How do I see which deployment actions ran, and who ran them?

The DataMind Installer keeps an admin-only record of every action, newest first. Each entry shows the action, what it targeted, how it ended and who ran it. No screen shows it; an admin reads it through the DataMind Installer's API. See The deployment history and audit trail.

What does Database connection failed mean?

The DataMind Installer runs, but it cannot reach its database container. Its log holds the reason (Health check failed — DB unreachable:), and the response itself never carries it. Causes and fixes: Troubleshooting.

How fresh is the Status screen?

Its states refresh every 10 seconds, and every 3 seconds while services start. Stale-service badges refresh every 60 seconds, update checks every 30 minutes, and a lost connection is retried every 3 seconds. See How fresh each view is.

How much of a service's log can I read on screen?

A service's log opens with about its last 200 lines and keeps about 500 lines; the job console keeps about 2,000 lines, and an image pull about 200 progress lines per service. See How much of a log stays on screen.

Do I need an account to use the health check?

No. The check answers without sign-in, so it suits your own monitoring tools.