Logs
Open a service's Logs tile, or click a deployment in the service's Deployments list. Logs have a page of their own:
- Deployment. The dropdown at the top picks whose logs you see: the current deployment comes first, earlier ones are under History (Removed or Failed). Next to it are the deployment's status, its ID (with a copy button), and the branch and commit it deployed, or the image for image-based services.
- Build logs show that deployment's output: cloning, building, pushing and rolling out. They update live while the deployment runs and are kept with it afterwards. A deployment that only deployed an image has no build, so the tab is disabled (unless the deployment failed: its steps then explain why).
- Runtime logs show what the service's containers wrote, with Zenavo's platform events about them in between.
- HTTP requests list the requests the server's proxy served for the service's domains, each with its request ID. See HTTP requests.
Reading the table
Every line is a row with three columns:
| Column | What it shows |
|---|---|
| Severity | ERROR, WARN, INFO or DEBUG, with a colored dot. |
| Time | Date and time in your browser's time zone, for example 10/22 18:25:06. |
| Summary | The line on one row. Click a row (or its chevron) to see all of it: JSON is pretty-printed, and Copy copies the line. The expanded row also shows the exact time, the instance and the deployment. |
Zenavo reads the severity from the line itself. It understands JSON loggers ("level", "severity", pino's numeric levels), level= fields, level words such as INFO:, [WARN] or ERROR - near the start of a line (uvicorn, Python logging, Java, Rails, Go), Kubernetes-style E1022 … lines, nginx [error], and crashes (Traceback, panic:, …Error:). Access logs without a level are WARN for 4xx and ERROR for 5xx responses. An indented line, such as a stack frame, keeps the severity of the line before it. Anything else is INFO: Kubernetes does not tell output written to stderr apart from stdout, so stderr alone does not make a line an error.
Use the search box and the ERROR / WARN / INFO / DEBUG buttons to narrow the table. The table follows the newest line as it arrives; scroll up to read in peace, and Jump to latest to follow again. Export saves what you see as a .log file (for stored logs, every line of the range).
Platform events
Between the application's own lines, runtime logs show what happened to its instances, marked with a purple [Zenavo] Pod/<instance> prefix:
| Event | Meaning |
|---|---|
| Scheduled | The instance was placed on the server. |
| Pulling, Pulled | The image is being downloaded, or is ready. |
| Failed, ErrImagePull, ImagePullBackOff (ERROR) | The image could not be pulled: check its name, tag and registry access. |
| Created, Started | The container was created and started. |
| Unhealthy (WARN) | The health check failed. |
| BackOff (WARN) | The container keeps exiting and is restarted after a growing delay. |
| OOMKilled (ERROR) | The container ran out of memory and was stopped. Raise its memory limit or lower its usage. |
| Exited (WARN) | The container exited with an error code. |
| Killing, Stopped | An instance is being replaced (a new deployment, a restart or a scale-down) and stopped as asked. |
| FailedMount, Evicted, FailedScheduling (ERROR) | A volume could not be attached, the server ran short of resources, or there was no room to run the instance. |
An event that keeps repeating, such as a failing health check, is shown at most once a minute with its count, for example (x7).
Instances and deployments
By default runtime logs follow the newest instance. Choose All instances to see every replica (and, during a rollout, the old and new instances side by side); each line then names its instance.
Every line and event records the deployment that started its instance, so a deployment's logs are exactly its own, even while a rollout runs old and new instances at once. Lines stored before Zenavo started recording this are matched to a deployment by time instead: from when it started until the next deployment finished. The page says so when it shows such lines.
Time range and stored logs
For the current deployment, All time follows the logs live: the last 200 lines of each instance, then new lines as they are written. Picking a range (the last hour up to the last 30 days, or a custom range) shows stored logs instead. Removed deployments always show stored logs. Lines usually appear in stored logs within two minutes of being written.
How long logs are kept depends on the team's plan:
| Plan | Kept for |
|---|---|
| Free | 48 hours |
| Dev | 7 days |
| Pro | 30 days |
| Team | 90 days |
Stored logs start when the feature is enabled and the service runs. Viewers can read and download them, as they can read live logs.
How they are stored
- Collected by the control plane. Zenavo reads the logs and events through the same connection it already uses to manage your server, and only in the project's own namespace. Your server gets no storage credentials, so a compromised server cannot read or delete anyone's stored logs.
- Redacted, then encrypted. Variable values are removed first, from container output and from event messages alike (a failing health check's message can contain the response it got). Each chunk is then compressed and encrypted (AES-256-GCM) with a key derived from the control plane's master key before it is uploaded. Someone who obtains the bucket or its access key sees only ciphertext.
- Deleted on time. Logs past the plan's retention are deleted every hour, and logs of deleted projects and teams are removed too.
- Bounded. Each service stores up to 200 MB of log text per hour; past that, a notice line is stored and the rest of the hour is skipped. Live logs still show every line. Lines longer than 64 KB are cut.
To forward logs to Datadog, Loki, Elasticsearch or your own endpoint as well, add a log drain. Platform events are forwarded too, as [Zenavo] Pod/<instance> — <Reason>: <message> lines.
Search a whole project
On the Pro plan and up, a project's Log Search (in the project's sidebar) searches the stored logs of all its services at once, or only the ones you pick, and shows the lines in time order with the service each came from. Search for text or, with Regular expression, for an expression such as timeout|refused (not case-sensitive), and leave out lines with Exclude lines containing. The range goes back as far as your plan keeps logs; the severity buttons filter the lines found. Viewers can search too.
On other plans, each service's own Logs page keeps everything above, including searching and downloading its stored logs.
HTTP requests
Every request to a domain on a Zenavo server gets a request ID, as on Zeabur:
- The response carries it in the
X-Zenavo-Request-Idheader, so a visitor or a client can report it (curl -sI https://your-domain | grep -i x-zenavo-request-id). - Your app receives the same ID as
X-Request-Id, so it can write it into its own logs. AnX-Request-Idthe client sent is replaced, so each ID names one request.
The HTTP requests tab lists the service's requests, newest first: time, status, method and path, duration and client IP. Click a row for the request ID (with a copy button), the full URL, protocol, response size and user agent. Paste a request ID into the search box to find that request, or type part of a path; the 2xx / 3xx / 4xx / 5xx buttons filter by status. Load older requests pages back.
The request log lives on the server only, in its proxy's (Traefik's) access log, and Zenavo reads it when you open the tab. Nothing is copied to the control plane. It keeps the most recent requests, about 40 MB of them (two files of up to 20 MB), so how far back it reaches depends on the server's traffic. Query strings are never shown, since they often carry tokens, and request headers other than the user agent and the request ID are not logged. Everyone in the team who can read the service's logs can read it, viewers included.
Servers set up before request IDs existed show a note instead. Open the server's Settings and Run setup again: projects keep running, and the proxy restarts once, for a few seconds. Setup leaves the proxy alone if its configuration was changed by hand (a K3s HelmChartConfig for Traefik that Zenavo did not write); such a server has no request IDs.
The same setup step makes the proxy see each visitor's own address (Kubernetes' externalTrafficPolicy: Local), so your app's X-Forwarded-For and the request log show the visitor's IP rather than an internal address.