# Read Laravel logs in production without SSH

By default, Laravel writes its log to `storage/logs/laravel.log` on whichever server handled the request. Reading it means SSH and `tail -f`, then the same again on the next server, and the file is gone when a container is replaced. Send the same lines to Tailcove and you watch them arrive and search them in the browser, from every web server and queue worker at once, without a shell on any of them.

## Where Laravel logs go today

With the default `LOG_STACK=single`, everything goes to `storage/logs/laravel.log`. The `daily` channel writes one file per day instead (`laravel-2026-11-30.log`) and keeps `LOG_DAILY_DAYS` of them, 14 by default.

To read them, you SSH in and run:

```bash
tail -f storage/logs/laravel.log
```

Or `php artisan pail`, which follows log lines as your app writes them, with filters like `--level=error` and `--user=42`. Pail is great on your own machine. In production it still needs a shell on the server, it only sees processes on that server, and it only shows what's logged while it's running.

That's manageable with one server. It stops being manageable when:

- the error could be in the files of any of three web servers, or of the queue worker,
- containers are replaced on every deploy and their log files go with them,
- you need last Tuesday's lines and you're running `grep` over rotated files,
- the person who needs to look, from support or another team, has no server access.

## 1. Send the logs to Tailcove

Install the package:

```bash
composer require tailcove/laravel
```

Add a `tailcove` channel to `config/logging.php`:

```php
'tailcove' => [
    'driver' => 'tailcove',
    'level' => env('LOG_LEVEL', 'debug'),
],
```

Put your source's ingest token in `.env` and add the channel to the stack. Keep `daily` too if you want a local copy:

```env
TAILCOVE_TOKEN=your-source-ingest-token
LOG_STACK=daily,tailcove
```

Do this on every server, or once in the image or environment they all share. Lines are sent in batches after the response has gone out, so requests don't wait on it. Queue workers and Horizon send their lines after every job, so a worker that runs for days doesn't hold them until it restarts. More detail in the [Laravel logging guide](https://tailcove.dev/guides/laravel-logging).

## 2. Watch them live

Open the source and choose **Live tail**. It loads the last 100 lines, then streams new ones as they arrive, newest at the top, usually a second or two after your app logs them. Lines from every server and worker land in the same view, each with its host.

Try it from any server:

```bash
php artisan tinker --execute 'Log::warning("Checking live tail");'
```

While the list is at the top it follows new lines. Scroll down or open a line and it holds still, counting what's new until you press **Jump to latest**. **Pause** freezes the view while lines keep buffering. The filter box narrows what's on screen by text in the message or the host, and the level filter by level. Click a line to load its full context, including the exception if it has one.

## 3. Search what already happened

The **Logs** tab searches every line the source has kept. Some searches that replace `grep`:

```
level:error
level:error host:web-2
"SQLSTATE" -host:canary
environment:production level:warning
```

The first finds every error, the second only those from one server, and the third database errors (Laravel's query exceptions start with `SQLSTATE`) from everywhere except a canary. Set the time range with the picker; one search covers up to 31 days. The [query language](https://tailcove.dev/docs/query-language) has the rest: `OR`, `NOT`, comparisons and regular expressions.

Now say a customer writes in that checkout failed. Find one of their lines, open it and choose **Show this request**. Tailcove lists every line with the same `request_id` from fifteen minutes either side, in order, with how long the request took from its first line to its last. The package gives every line logged during one request, or one queued job, the same id, and uses the `X-Request-Id` header instead when your load balancer already sets one.

**Show the 10 before and after** on the same line lists what that server logged around it, which is most of what `tail` was for.

## 4. Follow them from your terminal (optional)

If you'd rather stay in a terminal, `php artisan tailcove:tail` streams the same lines there, from every server, with Pail's filters:

```bash
php artisan tailcove:tail --level=error
php artisan tailcove:tail --user=42 --since=10m
```

It needs `TAILCOVE_API_TOKEN`, an API token with `logs:read`; `php artisan tailcove:install` sets one up. For a one-off search instead, open any line on the **Logs** tab and choose **Copy search as curl**. You get the same search as a call to the [Logs API](https://tailcove.dev/docs/api/logs), with `$TAILCOVE_TOKEN` standing in for an API token you create in Tailcove.

## How long lines are kept

Tailcove keeps lines for your plan's retention, listed on the [pricing page](https://tailcove.dev/pricing). The local `daily` files stay as long as `LOG_DAILY_DAYS` says, so keep that channel if you want both. To keep lines for longer, [archive them to S3](https://tailcove.dev/guides/archive-logs-to-s3).

## FAQ

**Where are Laravel logs stored in production?**

In `storage/logs/laravel.log` on each server with the default `single` channel, or in one file per day with `daily`. Every server, container and queue worker writes its own file, so there's no single place to read them all.

**How do I tail Laravel logs?**

On a server, `tail -f storage/logs/laravel.log` or `php artisan pail`. To follow every server at once without SSH, send the logs to Tailcove and open the source's **Live tail** tab, or run `php artisan tailcove:tail` from your own machine.

**Does sending logs to Tailcove slow down my app?**

No. The package keeps lines in memory and sends them in batches of up to 50 after the response has been sent. If a delivery fails, it's written to PHP's `error_log()` and never throws into your app.

**Can teammates without server access read the logs?**

Yes. Anyone in your Tailcove team with access to the source can open its Logs and Live tail tabs. Nobody needs an SSH key.

## Next steps

- [Laravel logging](https://tailcove.dev/guides/laravel-logging) for exceptions, context and secret masking.
- [Send Laravel errors to Slack](https://tailcove.dev/guides/laravel-errors-to-slack), so you hear about errors before a customer does.
- The [Live tail reference](https://tailcove.dev/docs/live-tail) and an overview of [live tail](https://tailcove.dev/product/live-tail).
