Logs
The logs add-on gives your app durable, searchable log storage in Grafana. It’s the right tool for any log question that goes beyond “what just happened in the last 30 seconds.”
Attach it
Section titled “Attach it”watasu addons:create logs --app my-appIf this is your first observability add-on for the app, Watasu provisions a Grafana workspace at the same time. See Observability Overview.
What you get
Section titled “What you get”- a centralized logs data source in Grafana
- structured search by labels and free text
- long retention windows (plan-dependent — see Add-on Plans)
- correlation with metrics and traces in the same Grafana
When to use Grafana logs vs. watasu logs
Section titled “When to use Grafana logs vs. watasu logs”| Question | Tool |
|---|---|
| Did my last deploy boot? | watasu logs |
| What’s happening right now? | watasu logs |
| What error did the worker hit during the 3am pager? | Grafana logs |
| How often does this exception type appear? | Grafana logs |
| Did this user’s request fail, and where? | Grafana logs (filter by request ID) |
Make your logs Grafana-friendly
Section titled “Make your logs Grafana-friendly”A few habits make a huge difference:
- log structured (JSON) where you can — Grafana indexes labels
- attach request IDs, user IDs, job IDs as labels or fields
- pick a log level discipline (
infois the floor,errorfor things you’d want paged) - never log secrets or tokens (Grafana’s full-text index makes this especially regrettable)
What it doesn’t do
Section titled “What it doesn’t do”The logs add-on stores what your app prints. It’s not a profiler, an APM, or a tracing tool. For request-level latency analysis, attach Traces too — they correlate with logs in Grafana.