---
title: "Deploy VictoriaLogs-Grafana"
description: "Bare bones Grafana provisioned with VictoriaLogs"
category: "Observability"
url: https://railway.com/deploy/AB1r4X
---

# Deploy VictoriaLogs-Grafana

Bare bones Grafana provisioned with VictoriaLogs

**[Deploy VictoriaLogs-Grafana on Railway](https://railway.com/template/AB1r4X)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/AB1r4X/manifest.json

- **Creator:** Oluwamayowa Esan's Projects
- **Category:** Observability
- **Total deploys:** 8

## Template content

### VictoriaLogs https://github.com/Battlesquid/railway-victorialogs-grafana/blob/main/assets/vm-icon-large.png?raw=true

- **Image:** victoriametrics/victoria-logs:latest
- **Start command:** `/bin/sh -c "exec /victoria-logs-prod -httpListenAddr 0.0.0.0:$PORT -httpAuth.username $VL_USERNAME -httpAuth.password $VL_PASSWORD -enableTCP6=true"`
- **Health check:** /health
- **Public domain:** Yes

### Grafana https://github.com/Battlesquid/railway-victorialogs-grafana/blob/main/assets/grafana-icon.png?raw=true

- **Source:** https://github.com/Battlesquid/railway-victorialogs-grafana
- **Health check:** /api/health
- **Public domain:** Yes

## Documentation

### Overview

Bare bones template to set up a [Grafana](https://grafana.com/) instance provisioned with a [VictoriaLogs](https://docs.victoriametrics.com/victorialogs/) [data source](https://github.com/VictoriaMetrics/victorialogs-datasource). 

A basic starter for sending logs to VictoriaLogs (replace `[VICTORIALOGS_INSTANCE]` and `[BASE_64_AUTH]` with your actual instance url and base-64 encoded `username:password`):

```bash
curl --request POST \
  --url 'https://[VICTORIALOGS_INSTANCE]/insert/jsonline?_stream_fields=stream&amp;_time_field=date&amp;_msg_field=log.message' \
  --header 'Authorization: Basic [BASE_64_AUTH]' \
  --header 'Content-Type: application/stream+json' \
  --data '{ "log": { "level": "info", "message": "hello world" }, "date": "0", "stream": "stream1" }
{ "log": { "level": "error", "message": "oh no!" }, "date": "0", "stream": "stream1" }
{ "log": { "level": "info", "message": "hello world" }, "date": "0", "stream": "stream2" }'
```

Read more about VictoriaLogs data ingestion options [here](https://docs.victoriametrics.com/victorialogs/data-ingestion/).

### Documentation

The full list of CLI flags for VictoriaLogs can be found [here](https://docs.victoriametrics.com/victorialogs/#list-of-command-line-flags).

The provisioned Grafana configuration can be found [here](https://github.com/Battlesquid/railway-victorialogs-grafana).

## Similar templates

- [Rootprint](https://railway.com/deploy/rootprint-1) — Open-source logs and traces with full-text search on object-storage.
- [VPS Fleet Watch Hub with Beszel](https://railway.com/deploy/vps-fleet-watch-hub-with-beszel) — A persistent Beszel hub for external VPS agents and fleet alerts.
- [Pyroscope profiling](https://railway.com/deploy/pyroscope-profiling) — Protected continuous profiling with durable Pyroscope storage.

Open this page in a browser: https://railway.com/deploy/AB1r4X
