Logging on Zerops
Zerops captures stdout/stderr as logs; use syslog output format for severity filtering. Supports forwarding to Better Stack, Papertrail, or self-hosted ELK via syslog.
Log Types
- Build logs — output from build pipeline
- Prepare runtime logs — output from custom runtime image creation
- Runtime/Database logs — operational output (stdout/stderr)
Access Methods
CLI
Agents in this ecosystem read runtime logs via the zerops_logs MCP tool — it fetches runtime logs only (no build-log flag); build logs surface by auto-attachment on a deploy-failure response.
Severity Filtering
Logs must output to syslog format for severity filtering to work. Plain stdout/stderr logs appear as "info" level.
Log Forwarding
Ready-Made Integrations
- Better Stack — cloud log management
- Papertrail — cloud log aggregation
- ELK Stack — self-hosted (Elasticsearch + Logstash + Kibana)
ELK Stack Setup (Self-Hosted on Zerops)
Services needed:
elkstorage— Elasticsearchkibana— UIlogstash— Log collection (UDP syslog)
Multi-project forwarding: make Logstash public with firewall whitelist rules.
Custom syslog-ng Configuration
Critical: Use source name s_src (not s_sys):
Certificate paths:
- System certs:
/etc/ssl/certs - Custom certs:
ca-file("/etc/syslog-ng/user.crt")
Gotchas
- UDP for Logstash: Zerops forwards logs via UDP syslog — ensure Logstash listens on UDP