---
title: "Deploy ELK Stack (Elasticsearch, Logstash, Kibana)"
description: "One-click ELK Stack: Elasticsearch, Logstash, and Kibana"
category: "Observability"
url: https://railway.com/deploy/elk-stack-elasticsearch-logstash-kibana
---

# Deploy ELK Stack (Elasticsearch, Logstash, Kibana)

One-click ELK Stack: Elasticsearch, Logstash, and Kibana

**[Deploy ELK Stack (Elasticsearch, Logstash, Kibana) on Railway](https://railway.com/template/elk-stack-elasticsearch-logstash-kibana)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/elk-stack-elasticsearch-logstash-kibana/manifest.json

- **Creator:** Andrew Wainscott's Projects
- **Category:** Observability

## Template content

### Kibana

- **Image:** kibana:8.17.0
- **Public domain:** Yes

### Logstash

- **Image:** logstash:8.17.0
- **Start command:** `sh -c 'mkdir -p /usr/share/logstash/elk-pipeline && echo aW5wdXQgewogIGJlYXRzIHsKICAgIHBvcnQgPT4gNTA0NAogIH0KICBodHRwIHsKICAgIHBvcnQgPT4gODA4MAogIH0KfQoKZmlsdGVyIHsKICAjIFBhc3N0aHJvdWdoIGJ5IGRlZmF1bHQuIEFkZCBncm9rL211dGF0ZSBydWxlcyBoZXJlIGZvciB5b3VyIGxvZyBmb3JtYXRzLgp9CgpvdXRwdXQgewogIGVsYXN0aWNzZWFyY2ggewogICAgaG9zdHMgPT4gWyJodHRwOi8vJHtFU19QUklWQVRFX0RPTUFJTn06OTIwMCJdCiAgICB1c2VyID0+ICJlbGFzdGljIgogICAgcGFzc3dvcmQgPT4gIiR7RUxBU1RJQ19QQVNTV09SRH0iCiAgICBpbmRleCA9PiAibG9ncy0leytZWVlZLk1NLmRkfSIKICB9CiAgIyBNaXJyb3IgZXZlbnRzIHRvIHRoZSBjb250YWluZXIgbG9nIHNvIGByYWlsd2F5IGxvZ3NgIHNob3dzIHRoZSBwaXBlbGluZSBpcyBhbGl2ZS4KICBzdGRvdXQgewogICAgY29kZWMgPT4gcnVieWRlYnVnCiAgfQp9Cg== | base64 -d > /usr/share/logstash/elk-pipeline/main.conf && echo IyBQb2ludCB0aGUgbWFpbiBwaXBlbGluZSBhdCBvdXIgb3duIGRpcmVjdG9yeSBvbmx5LiBUaGUgc3RvY2sgaW1hZ2UKIyAocmUpY3JlYXRlcyBhIGRlZmF1bHQgcGlwZWxpbmUvbG9nc3Rhc2guY29uZiBhdCBjb250YWluZXIgc3RhcnQsIHdoaWNoCiMgb3RoZXJ3aXNlIGdldHMgbWVyZ2VkIHdpdGggb3VycyBhbmQgY29sbGlkZXMgb24gdGhlIEJlYXRzIHBvcnQuCi0gcGlwZWxpbmUuaWQ6IG1haW4KICBwYXRoLmNvbmZpZzogIi91c3Ivc2hhcmUvbG9nc3Rhc2gvZWxrLXBpcGVsaW5lLyouY29uZiIK | base64 -d > /usr/share/logstash/config/pipelines.yml; echo "xpack.monitoring.enabled: false" >> /usr/share/logstash/config/logstash.yml; chmod -R a+rX /usr/share/logstash/elk-pipeline 2>/dev/null; exec /usr/local/bin/docker-entrypoint logstash'`

### Elasticsearch

- **Image:** elasticsearch:8.17.0
- **Start command:** `sh -c 'mkdir -p /usr/share/elasticsearch/data && chown -R elasticsearch:elasticsearch /usr/share/elasticsearch/data; ( for i in $(seq 1 90); do if curl -sf -u "elastic:${ELASTIC_PASSWORD}" http://localhost:9200/_cluster/health >/dev/null 2>&1; then curl -sf -u "elastic:${ELASTIC_PASSWORD}" -X POST "http://localhost:9200/_security/user/kibana_system/_password" -H "Content-Type: application/json" -d "{\"password\":\"${KIBANA_SYSTEM_PASSWORD}\"}" >/dev/null 2>&1 || true; break; fi; sleep 5; done ) & exec /usr/local/bin/docker-entrypoint.sh elasticsearch'`

## Documentation

# Deploy and Host ELK Stack (Elasticsearch, Logstash, Kibana) on Railway

WHAT IT IS: A one-click ELK Stack on Railway — Elasticsearch 8.17, Logstash 8.17, and Kibana 8.17, deployed as separate services that talk over Railway's private network, with X-Pack security enabled and a persistent volume for your data.

## About Hosting ELK Stack (Elasticsearch, Logstash, Kibana)

WHAT IT DOES: Logstash takes in your logs (Beats input on port 5044 and an HTTP input on port 8080), parses them, and ships them to Elasticsearch, which indexes and stores them; Kibana gives you the web dashboard to search, explore, and visualize everything in one place. Secrets are generated fresh for every deploy, so no two deployments share credentials.

WHO IT'S FOR: Developers and small teams who want real log search and dashboards without running and patching their own ELK servers — indie hackers, small SaaS teams, and anyone shipping on Railway who needs to see what their apps are doing. Verified end-to-end before publishing: a log posted to Logstash's HTTP input was indexed by Elasticsearch and visible in Kibana.

## Common Use Cases

- Searching and exploring logs from apps deployed on Railway
- Centralizing logs from multiple services into one searchable store
- Building dashboards and visualizations of application activity in Kibana

## Dependencies for ELK Stack (Elasticsearch, Logstash, Kibana) Hosting

- Elasticsearch 8.17 — indexes and stores your logs
- Logstash 8.17 — ingests logs over Beats (port 5044) and HTTP (port 8080)
- Kibana 8.17 — the web dashboard for search and visualization

## Why Deploy ELK Stack (Elasticsearch, Logstash, Kibana) 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 ELK Stack (Elasticsearch, Logstash, Kibana) 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.


## Similar templates

- [Rootprint](https://railway.com/deploy/rootprint-1) — Open-source logs and traces with full-text search on object-storage.
- [Pyroscope profiling](https://railway.com/deploy/pyroscope-profiling) — Protected continuous profiling with durable Pyroscope storage.
- [SigOnly](https://railway.com/deploy/sigonly) — Deploy SigNoz with a working demo app & config in one click

Open this page in a browser: https://railway.com/deploy/elk-stack-elasticsearch-logstash-kibana
