Logs & metrics

Logs and metrics
for apps & servers

Watch your logs live and search them. See CPU, memory, network and disk for every app and server. Nothing to install.

storefrontruntime logsLive
$slasha logs -f0 lines

How it works

There’s nothing to set up

Slasha collects logs and metrics as soon as your first container starts.

01

Deploy as usual

Slasha saves stdout and stderr from every container it starts.

git push slasha main

02

Follow it live

In the dashboard or your terminal. Filter by process, stream or text.

slasha logs -f -p web -s stderr

03

Check the charts

CPU, memory, network and disk, sampled every 10 seconds.

Apps → storefront → Metrics

All your logs

Every log in one place

Builds, releases, web and worker processes, databases, cron runs and node setup. Each line is tagged with its process, like web.0, and its stream.

  • Search the whole log
  • Filter by process and by stdout or stderr
  • Failed deploys keep their logs
How logs work
AppsstorefrontDeployments9f3c2e1

Commit

9f3c2e1

Status

Running

Duration

41s

Message

Add pricing page

Live
systemBuilding image with railpack
system↳ Detected Node.js 22 · npm
system↳ npm ci · added 412 packages in 11s
system↳ npm run build · compiled successfully
systemRunning release: npx prisma migrate deploy
release2 migrations applied
systemStarting web.0, web.1, worker.0
web.0Server listening on 0.0.0.0:8080
web.1Server listening on 0.0.0.0:8080
worker.0Connected to redis · waiting for jobs
systemHealth check passed · switching traffic
web.0GET /products 200 · 24ms
web.1POST /cart 201 · 41ms
worker.0job send-receipt #8812 done in 312ms
web.0WARN slow query on orders, 812ms
web.1GET /checkout 200 · 37ms
web.0ERROR stripe webhook signature mismatch
worker.0job sync-inventory #8813 done in 1.4s

Builds · runtime · databases · cron runs · node setup

CLI

Read logs from your terminal

slasha logs shows the latest deployment, even a failed one. Follow it live, filter it, or pipe it into grep.

  • -f follows new lines
  • -p web matches all web processes, -p web.1 only that one
  • -n sets the line count (default 2000)
  • Works for databases too: slasha services logs db
CLI reference
~/storefront

$ slasha logs --search "stripe" -s stderr

02:15:15 [web.0] [stderr] stripe signature mismatch

02:41:02 [web.1] [stderr] stripe signature mismatch

$ slasha logs -f -p worker

02:44:10 [worker.0] [stdout] send-receipt done

02:44:12 [worker.1] [stdout] sync-inventory done

$ slasha logs -n 500 | grep -i timeout

$

App metrics

CPU, memory, network and disk for each app

Recorded every 10 seconds, straight from Docker. Look back up to 30 days, or turn on live mode while you load test.

  • CPU, memory, network and disk I/O
  • Ranges from 1 hour to 30 days
  • Live mode
How metrics work
AppsstorefrontMetrics
storefront mainLive
DeploymentsScalingServicesCronsMetricsFilesSettings
Live

CPU

25.6%

Memory

261 MiB

Network

179 KB/s

Disk I/O

23 KB/s

Node metrics

Metrics for your servers too

Every server reports CPU, memory, swap, disk, network and load average every 15 seconds. When an app slows down, check if the whole server is busy.

  • Main server and every node
  • Same 30-day history as apps
Servers & nodes
eu-worker-1 · Metrics
CPU41%
Memory4.8 / 7.7 GiB
Swap0.2 / 2.0 GiB
Disk31 / 80 GB

Load average

0.41 0.38 0.35

1m · 5m · 15m

Network

↓ 1.2 MB/s

↑ 340 KB/s

Updated every 15s

More details

Live logs

New lines show up as they’re written, in the dashboard and the CLI.

Search

Text search, combined with process and stream filters.

Process prefixes

Lines tagged system, web.0, worker.1 and so on.

Filter by stream

Show only stderr when you’re hunting errors.

No retention limit

Logs stay until you delete the deployment, service or job they belong to.

30 days of metrics

Downsampled for long ranges, with a live mode.

No agents

Read from Docker. Nothing to add to your images.

Stays on your server

Stored in DuckDB next to Slasha. No third-party log service.

Questions about logs & metrics

Have another question? Ask on GitHub.

Do I need to install an agent or a logging library?
No. Slasha reads logs and resource usage from Docker, so you don’t add anything to your containers. Anything your app prints to stdout or stderr shows up.
How long are logs and metrics kept?
Logs are kept until you delete the thing they belong to, such as a deployment, service, cron job or node. There’s no automatic retention limit. Metrics are kept for 30 days and downsampled for the longer ranges.
Where is the data stored?
On your server, in a DuckDB file next to Slasha’s SQLite database. Nothing is sent to a third party.
Can I see logs from a deploy that failed?
Yes. Failed deployments keep their full log, and slasha logs shows the latest deployment by default even if it failed. Pass a deployment ID to read an older one.
Can I get notified when CPU or memory runs high?
Yes. Admins can set up alert rules on app CPU and memory, plus node CPU, memory, storage and load average, and send them to Slack, Discord, Telegram or email.
Can I forward logs to another service?
Slasha doesn’t have a built-in log forwarder. If you need logs somewhere else, send them from your app directly. Most logging libraries can write to stdout and to a remote service at the same time.

Other features

All features

Read your logs without SSHing into the server

Free and open source. Your first app can be live in ten minutes.

$curl -fsSL https://slasha.com/setup.sh | bash