Skip to content

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

  1. 1Logs arrive from the agent’s file tailing, OpenTelemetry, a forwarder or HTTP.
  2. 2Pipelines and redaction rules run before storage; each line keeps service, environment and trace id.
  3. 3Lines are searchable for your plan’s retention, then archived by day; an archived day can be restored.
  4. 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. 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.yaml
    logs_enabled: true
    logs:
      - type: file
        path: /srv/app/logs/*.log
        service: checkout-api
        source: app

Check it works

  1. 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. 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. 2

    Redact before storage

    Logs → Redaction rules mask patterns (tokens, card numbers) before a line is stored.

  3. 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. 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.

terminal
journalctl -u appstatus-agent | grep -i log
Lines 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.
Compare 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.