A lightweight alternative to ELK, Graylog and Loki
ELK (Elasticsearch, Logstash, Kibana), Graylog and Grafana Loki are proven log platforms. They all work the same basic way: agents ship log lines to a central store, the store indexes them, and you query the store.
That model is powerful, and it has a cost. This page explains when it pays off, and when a lighter approach that searches logs where they already are does the job.
What a central log platform gives you
- Retention after the source server is gone, for example after an autoscaling node is terminated.
- Fast queries over large history, because data is indexed in advance.
- Dashboards and alerts on log data, such as an error rate per service.
- One place for logs from many sources: apps, containers, network devices.
If you need these, use one of them. Logswarm is not a replacement for long-term storage, dashboards or alerting.
What it costs
- Infrastructure to run. Elasticsearch or OpenSearch clusters for ELK and Graylog (Graylog also needs MongoDB). Loki needs object storage and its own components to run reliably.
- Shipping pipeline. Agents on every host (Filebeat, Fluent Bit, Promtail or similar), parsing rules, and keeping them in sync with log formats.
- Storage. Every log line is copied and kept, often several times over with replicas and indexes.
- Data leaves the server. Sensitive log content now lives in a second system with its own access control.
Loki keeps costs lower than Elasticsearch by indexing only labels, not the full text. Queries over large time ranges then scan more data.
Searching in place instead
Many teams only need logs during an incident: "what happened on these servers in the last hour?" The logs are already on the servers. Searching them where they are, over SSH, avoids the pipeline entirely.
Logswarm does exactly that:
- One Docker container with a browser UI. No agents on the servers, no cluster, no index.
- Search over SSH with
ripgrep,zgreporgrepon each host, including rotated.gzfiles. - Matches stream in live from all servers into one table, sorted by the timestamp your regex extracts.
- Filter by parsed fields (level, thread, logger) without searching again.
- Logs stay on your servers. Only matching lines travel to the browser.
Side by side
| ELK / Graylog | Loki | Logswarm | |
|---|---|---|---|
| Where logs live | Copied to a central index | Copied to object storage | Stay on the servers |
| Needs agents on hosts | Yes | Yes | No, SSH only |
| History after a host is gone | Yes | Yes | No |
| Dashboards and alerting | Yes | Yes (with Grafana) | No |
| Setup for a first search | Cluster + agents + parsing | Loki + agents + Grafana | docker compose up and add servers |
| Best for | Long retention, analytics, compliance | Cheaper central logs with labels | Incident search on existing servers |
Using both
The tools are not exclusive. A common setup is a central platform for the logs you must keep and alert on, and in-place search for everything else: verbose debug logs, legacy apps that were never wired into the pipeline, or servers where shipping logs isn't allowed.
To try in-place search, follow the Docker setup. The Starter plan is built in and needs no license file.