Deploy VictoriaLogs
VictoriaLogs 1.52 fast log database with LogsQL, Loki and OTLP ingestion.
victorialogs
Just deployed
/vlogs
Deploy and Host VictoriaLogs on Railway
VictoriaLogs is a fast, resource-efficient open-source log database from the VictoriaMetrics team. It ingests logs through Elasticsearch, Loki, OpenTelemetry, syslog and JSON line APIs, stores them compactly with high-cardinality fields, and queries them with LogsQL from a built-in web UI, Grafana or the HTTP API.
About Hosting VictoriaLogs
This template deploys VictoriaLogs v1.52.0 from the official image with its data on a Railway volume. Built-in HTTP basic authentication with a generated password protects ingestion, queries and the web UI, while /health stays open for Railway. Logs are kept for 14 days and total disk use is capped at 4 GiB, so the volume stays within the Hobby limit; raise both for more history. The server listens on IPv4 and IPv6, so shippers on Railway send logs over the private network. A single small service handles ingestion, storage, queries and the UI.
Common Use Cases
- Central log storage for apps, workers and databases on Railway
- A lightweight replacement for Loki or Elasticsearch for logs
- Searching logs from Grafana with the VictoriaLogs data source
Dependencies for VictoriaLogs Hosting
victoriametrics/victoria-logs:v1.52.0(official image)- A Railway volume at
/vlogs
Deployment Dependencies
Implementation Details
| Service | Image | Networking | Storage |
|---|---|---|---|
| victorialogs | victoriametrics/victoria-logs:v1.52.0 | public domain on 9428; private IPv4/IPv6 | volume at /vlogs |
curl -u admin:$VL_PASSWORD -H 'Content-Type: application/stream+json' \
-X POST "https:///insert/jsonline?_stream_fields=app" \
--data-binary '{"_msg":"payment failed","level":"error","app":"api"}'
curl -u admin:$VL_PASSWORD https:///select/logsql/query --data-urlencode 'query=_time:1h level:error'
| Variable | Default | Purpose |
|---|---|---|
VL_USERNAME / VL_PASSWORD | admin / generated | Basic auth for all endpoints except /health |
VL_RETENTION | 14d | Retention period |
VL_MAX_DISK_SPACE | 4GiB | Oldest data is dropped above this size |
Notes:
- Send a
Content-Typeheader with JSON line data, or the body is read as a form and nothing is stored. - The OpenTelemetry endpoint accepts OTLP protobuf from exporters and collectors; the Loki push API also works.
This is a community-maintained deployment package and does not imply affiliation with or endorsement by the VictoriaLogs project or its maintainers.
Why Deploy VictoriaLogs on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying VictoriaLogs on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
victorialogs
victoriametrics/victoria-logs:v1.52.0
