Logs
Send logs from the agent, OpenTelemetry or HTTP; search, live tail, archive and restore.
In the console: Console → Observe → Logs
All guides
Logs reach AppStatus from the host agent (file tailing), OpenTelemetry, a log forwarder (Fluent Bit, Fluentd, Logstash, rsyslog, syslog-ng) or a plain HTTPS POST from any language. Each line keeps its service, environment and, where present, the trace it belongs to.
Why use it
- You need to search logs from every server and service in one place.
- You want to jump from a slow trace to its log lines, or tail logs live during an incident.
- You want an alert when an error message appears or a source goes quiet.
How it works
- 1Logs arrive from the agent’s file tailing, OpenTelemetry, a forwarder or HTTP.
- 2Pipelines and redaction rules run before storage; each line keeps service, environment and trace id.
- 3Lines are searchable for your plan’s retention, then archived by day; an archived day can be restored.
- 4Pattern clustering and log alerts run on the stored stream.
What you get
- Search with facets, live tail and saved queries.
- Log alert rules (count threshold, text match, or a source that stopped sending), redaction rules and pipelines.
- Pattern clustering: a thousand identical lines become one row and a new one stands out.
- Archive past retention, and a Restore day button that brings an archived day back into search.
Set it up
Get Started shows these commands with your key already filled in — copying from there is the quickest path. Here, <your-key> marks where it goes.
- 1
Tail files
Add the files to /etc/appstatus/agent.yaml and restart the agent. Get Started → Logs has blocks for Nginx, PostgreSQL, MySQL, MongoDB, Redis, journald/syslog and your own files.
agent.yamllogs_enabled: true logs: - type: file path: /srv/app/logs/*.log service: checkout-api source: app
- 1
Send OTLP logs
Point the SDK or collector’s logs exporter at the same endpoint as traces.
shellexport OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf" export OTEL_EXPORTER_OTLP_ENDPOINT="https://agent.appstatus.io" export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer <your-key>" export OTEL_LOGS_EXPORTER="otlp"
- 1
Fluent Bit
fluent-bit.conf[OUTPUT] Name http Match * Host agent.appstatus.io Port 443 TLS On URI /api/v1/ingest/log-intake Format json Header Authorization Bearer <your-key> - 2
Fluentd, Logstash, rsyslog, syslog-ng
Get Started → Logs → Configure a log forwarder has the output block for each. All of them POST JSON to /api/v1/ingest/log-intake with the key as a Bearer token.
- 1
POST a batch
terminalcurl -X POST "https://agent.appstatus.io/api/v1/ingest/log-intake" \ -H "Authorization: Bearer <your-key>" -H "Content-Type: application/json" \ -d '{"method":"http","logs":[{"service":"api","source":"myapp","status":"warn","message":"hello from setup"}]}'
Check it works
- 1
Send one line and watch live tail
Open Logs → Live tail, then send the curl above. The line shows within seconds.
Use it
- 1
Alert on logs
Logs → Alert rules: fire on a count threshold (for example more than 20 errors from checkout-api in 5 minutes), on a message that contains a text, or when a source stops sending.
- 2
Redact before storage
Logs → Redaction rules mask patterns (tokens, card numbers) before a line is stored.
- 3
Restore an archived day
Logs → Retention & Storage → Archived days: pick the day and press Restore day. The lines become searchable again (restoring the same day twice adds nothing) and age out again by the normal rules. Needs a role that can change data (Member or above).
Uninstall / remove
- 1
Stop sending
Remove the logs: block from agent.yaml and restart the agent, remove the forwarder output, or the HTTP call. Revoke the key.
Troubleshooting
The problems seen most, each with what to run. Still stuck? See the general Troubleshooting guide.
Agent installed but no logs
logs_enabled must be true and the paths must exist and be readable by the agent (it runs as root by default). The agent log names each file it tails.
journalctl -u appstatus-agent | grep -i logLines arrive with the wrong level
Send a status field (error, warn, info, debug), or add a pipeline that parses the level out of the message.
Logs stopped mid-month
Past 150% of the data pool, logs are refused until it resets. Before that, only error and warning lines are kept past 100%. Billing shows the pool; per-service daily budgets and “drop info/debug” keep it in check.
rsyslog: omhttp not found
Install the rsyslog-omhttp package (or build rsyslog with omhttp), then restart rsyslog.
Plan limits
- Log retention: Free 3 days, Starter 14, Pro 45, Business 90, Enterprise 180.
- Log bytes count against the monthly data pool.
Related guides
Logs & metrics
Log pipelines
Parse, enrich, redact and route logs before they are stored.
Infrastructure
Host agent
Install, check, update and remove the agent on Linux, macOS, Windows and Docker.
Intelligence
AI Insights, SLOs & log patterns
Detectors every five minutes, application SLOs and burn alerts, new log patterns.
Account & billing
Plans, data pool & billing
What counts against the data pool, what happens past it, and how to change plans.
Something here does not match what you see in the console? Open Help → Support in AppStatus or write to support@appstatus.io with the page and what you ran.