PHPackages                             achyutn/filament-log-viewer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. achyutn/filament-log-viewer

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

achyutn/filament-log-viewer
===========================

A Filament package to view and manage Laravel logs.

v2.1.1(3mo ago)4497.9k—7.7%1519MITPHPPHP &gt;=8.2CI passing

Since Jul 21Pushed 3mo agoCompare

[ Source](https://github.com/achyutkneupane/filament-log-viewer)[ Packagist](https://packagist.org/packages/achyutn/filament-log-viewer)[ Fund](https://www.buymeacoffee.com/achyutn)[ Fund](https://buymemomo.com/achyut)[ RSS](/packages/achyutn-filament-log-viewer/feed)WikiDiscussions filament-v4 Synced 1mo ago

READMEChangelog (10)Dependencies (11)Versions (52)Used By (19)

Filament Log Viewer
===================

[](#filament-log-viewer)

[![Filament Log Viewer](https://camo.githubusercontent.com/bd61fba29afb6473f1918789955117a66e1bed20b90868c2d6c274477ce7e8aa/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f46696c616d656e742532304c6f672532305669657765722e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6163687975746e25324666696c616d656e742d6c6f672d766965776572267061747465726e3d686964656f7574267374796c653d7374796c655f32266465736372697074696f6e3d412b46696c616d656e742b7061636b6167652b746f2b766965772b616e642b6d616e6167652b4c61726176656c2b6c6f67732e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313735707826696d616765733d646f63756d656e742d7265706f7274)](https://camo.githubusercontent.com/bd61fba29afb6473f1918789955117a66e1bed20b90868c2d6c274477ce7e8aa/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f46696c616d656e742532304c6f672532305669657765722e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6163687975746e25324666696c616d656e742d6c6f672d766965776572267061747465726e3d686964656f7574267374796c653d7374796c655f32266465736372697074696f6e3d412b46696c616d656e742b7061636b6167652b746f2b766965772b616e642b6d616e6167652b4c61726176656c2b6c6f67732e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313735707826696d616765733d646f63756d656e742d7265706f7274)

[![Packagist Version](https://camo.githubusercontent.com/a79eb81c299421a7298136387d14c9282ad79eba55b82755ec7bd4e8fc4540a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6163687975746e2f66696c616d656e742d6c6f672d7669657765723f6c6162656c3d4c617465737425323056657273696f6e)](https://camo.githubusercontent.com/a79eb81c299421a7298136387d14c9282ad79eba55b82755ec7bd4e8fc4540a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6163687975746e2f66696c616d656e742d6c6f672d7669657765723f6c6162656c3d4c617465737425323056657273696f6e)[![Packagist Downloads](https://camo.githubusercontent.com/0a476fe5f7042a071e72c7d6b573895531e216693383abfe93cd23d78ef3e95a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6163687975746e2f66696c616d656e742d6c6f672d7669657765723f6c6162656c3d5061636b6167697374253230446f776e6c6f616473)](https://camo.githubusercontent.com/0a476fe5f7042a071e72c7d6b573895531e216693383abfe93cd23d78ef3e95a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6163687975746e2f66696c616d656e742d6c6f672d7669657765723f6c6162656c3d5061636b6167697374253230446f776e6c6f616473)[![Packagist Stars](https://camo.githubusercontent.com/7e6a13dbe01f10298fda9086a6f612dad179f14cdb0835d7c52f48e118c1affd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6163687975746e2f66696c616d656e742d6c6f672d7669657765723f6c6162656c3d5374617273)](https://camo.githubusercontent.com/7e6a13dbe01f10298fda9086a6f612dad179f14cdb0835d7c52f48e118c1affd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6163687975746e2f66696c616d656e742d6c6f672d7669657765723f6c6162656c3d5374617273)[![Quality Gate Status](https://camo.githubusercontent.com/9f4d64703a90c15b7bdcd1902945078f47fe55473ca4fd42aa9b829d9885badf/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6163687975746b6e657570616e655f66696c616d656e742d6c6f672d766965776572266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/summary/new_code?id=achyutkneupane_filament-log-viewer)[![Lint & Test PR](https://github.com/achyutkneupane/filament-log-viewer/actions/workflows/prlint.yml/badge.svg)](https://github.com/achyutkneupane/filament-log-viewer/actions/workflows/prlint.yml)[![Bump version](https://github.com/achyutkneupane/filament-log-viewer/actions/workflows/tagrelease.yml/badge.svg)](https://github.com/achyutkneupane/filament-log-viewer/actions/workflows/tagrelease.yml)

A Filament plugin to read and display Laravel log files in a clean, searchable table with stack traces and filtering.

Refer to [version compatibility table](#filament-compatibility) below to ensure you are using the correct version of this package with your Filament installation.

Installation
------------

[](#installation)

```
composer require achyutn/filament-log-viewer
```

Register the plugin inside your Filament panel:

```
use AchyutN\FilamentLogViewer\FilamentLogViewer;

return $panel
    ->plugins([
        FilamentLogViewer::make(),
    ]);
```

Usage
-----

[](#usage)

After installation, visit `/logs` in your Filament panel. You will see a table of log entries.

### Configuration

[](#configuration)

You can configure the maximum file size limit for log files to be loaded and displayed. This helps prevent performance issues with very large log files.

The default file size limit is set to `2 MB`:

```
// config/filament-log-viewer.php

return [
    'max_log_file_size' => env('LOG_MAX_SIZE_KB', 2048),
];
```

To override this setting, you can set the `LOG_MAX_SIZE_KB` environment variable in your `.env` file:

```
LOG_MAX_SIZE_KB=20480

```

Or, you can publish the configuration file and update the `max_log_file_size` value as needed:

```
php artisan vendor:publish --tag=filament-log-viewer-config
```

Then, in your published `config/filament-log-viewer.php` file:

```
return [
    // Set max file size to 20 MB
    'max_log_file_size' => env('LOG_MAX_SIZE_KB', 20480),
];
```

### Table Columns

[](#table-columns)

- **Log Level** – Badge with color mapped from log level
- **Environment** *(Toggleable)* – Application environment (`local`, `production`, etc.)
- **File** *(Toggleable)* – Log file name (e.g., `laravel.log`)
- **Message** – Short summary of the log
- **Occurred** – Human-readable date/time

[![Table Preview](https://camo.githubusercontent.com/2a5a39d17aff6cd3837b5e142d184cdada85bd1c5ebaf1b89b404aab03e65423/68747470733a2f2f68616d726f63646e2e636f6d2f3735716c5247455472726936)](https://camo.githubusercontent.com/2a5a39d17aff6cd3837b5e142d184cdada85bd1c5ebaf1b89b404aab03e65423/68747470733a2f2f68616d726f63646e2e636f6d2f3735716c5247455472726936)

Click the view action to inspect stack traces.

[![Stack Tracing](https://camo.githubusercontent.com/86f5a846faeffcbd17dd051ecd9153928e69d0feaf420c4aeb0f3d0d5ce5c81f/68747470733a2f2f68616d726f63646e2e636f6d2f77504b7361716f5848354834)](https://camo.githubusercontent.com/86f5a846faeffcbd17dd051ecd9153928e69d0feaf420c4aeb0f3d0d5ce5c81f/68747470733a2f2f68616d726f63646e2e636f6d2f77504b7361716f5848354834)

### Mail Preview

[](#mail-preview)

If your logs contain mail messages, you can preview them directly from the table. You can click on `Mail` tab which is visible only if mail are present.

[![Mail Preview](https://camo.githubusercontent.com/4ff9877305452acc82879bafc7040070ca4d01a727041cd038b01ffa91ee957e/68747470733a2f2f68616d726f63646e2e636f6d2f68727235423247704b536b65)](https://camo.githubusercontent.com/4ff9877305452acc82879bafc7040070ca4d01a727041cd038b01ffa91ee957e/68747470733a2f2f68616d726f63646e2e636f6d2f68727235423247704b536b65)

### Filters

[](#filters)

#### Log Levels

[](#log-levels)

You can filter the logs according to log level. The filters are available as tabs above the table:

[![Log level Filters](https://camo.githubusercontent.com/0fda10c87f46084fe1cad0c7dbc9e4e53fc82f3ff6498f8a8a7e9b72ac47a55b/68747470733a2f2f68616d726f63646e2e636f6d2f77707a70777372765a617870)](https://camo.githubusercontent.com/0fda10c87f46084fe1cad0c7dbc9e4e53fc82f3ff6498f8a8a7e9b72ac47a55b/68747470733a2f2f68616d726f63646e2e636f6d2f77707a70777372765a617870)

#### Date

[](#date)

You can filter logs by date using the date picker in the top right corner of the table. This allows you to select a specific date range to view logs.

[![Date Filter](https://camo.githubusercontent.com/a733d6beee75c4c53801bfeeb124c30ce9e32afbf137bb18b496a066577c7fa2/68747470733a2f2f68616d726f63646e2e636f6d2f616d5f52416a325651486947)](https://camo.githubusercontent.com/a733d6beee75c4c53801bfeeb124c30ce9e32afbf137bb18b496a066577c7fa2/68747470733a2f2f68616d726f63646e2e636f6d2f616d5f52416a325651486947)

#### Toggle Columns

[](#toggle-columns)

You can toggle the visibility of the **Environment** and **File** columns by clicking the eye icon in the top right corner of the table.

[![Toggle Columns](https://camo.githubusercontent.com/4d9da7ff56d43420de996e93b73ec15ccfac5003685564215c98f13754b249c4/68747470733a2f2f68616d726f63646e2e636f6d2f7134655a4d39376274556632)](https://camo.githubusercontent.com/4d9da7ff56d43420de996e93b73ec15ccfac5003685564215c98f13754b249c4/68747470733a2f2f68616d726f63646e2e636f6d2f7134655a4d39376274556632)

Extending
---------

[](#extending)

You can customize navigation label, icon, sort, etc. using:

```
use AchyutN\FilamentLogViewer\FilamentLogViewer;

FilamentLogViewer::make()
    ->authorize(fn () => auth()->check())
    ->navigationGroup('System')
    ->navigationIcon('heroicon-o-document-text')
    ->navigationLabel('Log Viewer')
    ->navigationSort(10)
    ->navigationUrl('/logs')
    ->pollingTime(null); // Set to null to disable polling
```

Filament Compatibility
----------------------

[](#filament-compatibility)

VersionFilament Version[`^2.x`](https://github.com/achyutkneupane/filament-log-viewer/tree/filament-v5)Filament v5[`^1.x`](https://github.com/achyutkneupane/filament-log-viewer/tree/filament-v4)Filament v4[`^0.x`](https://github.com/achyutkneupane/filament-log-viewer/tree/filament-v3)Filament v3Make sure you're using the appropriate version of this package for your Filament installation.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE.md).

Changelog
---------

[](#changelog)

See the [CHANGELOG](CHANGELOG.md) for details on changes made in each version.

Contributing
------------

[](#contributing)

Contributions are welcome! Please create a pull request or open an issue if you find any bugs or have feature requests.

Support
-------

[](#support)

If you find this package useful, please consider starring the repository on GitHub to show your support.

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance79

Regular maintenance activity

Popularity47

Moderate usage in the ecosystem

Community31

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 93.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

46

Last Release

108d ago

Major Versions

v0.5.3 → v1.0.02025-08-04

v0.6 → v1.4.32025-10-01

v0.7 → v1.62025-11-28

v1.6.1 → v2.0.02026-01-16

v1.7.0 → v2.1.12026-01-30

PHP version history (2 changes)v0.0.1PHP &gt;=8.1

v0.2.2PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/52259760?v=4)[achyutn](/maintainers/achyutn)[@AchyutN](https://github.com/AchyutN)

---

Top Contributors

[![achyutkneupane](https://avatars.githubusercontent.com/u/30431426?v=4)](https://github.com/achyutkneupane "achyutkneupane (416 commits)")[![ahmed-rashad-alnaggar](https://avatars.githubusercontent.com/u/131385452?v=4)](https://github.com/ahmed-rashad-alnaggar "ahmed-rashad-alnaggar (10 commits)")[![clnt](https://avatars.githubusercontent.com/u/19330442?v=4)](https://github.com/clnt "clnt (4 commits)")[![produktive](https://avatars.githubusercontent.com/u/21110476?v=4)](https://github.com/produktive "produktive (3 commits)")[![amidesfahani](https://avatars.githubusercontent.com/u/61671721?v=4)](https://github.com/amidesfahani "amidesfahani (2 commits)")[![dipesh79](https://avatars.githubusercontent.com/u/63183800?v=4)](https://github.com/dipesh79 "dipesh79 (2 commits)")[![relisiuol](https://avatars.githubusercontent.com/u/49282232?v=4)](https://github.com/relisiuol "relisiuol (1 commits)")[![bilogic](https://avatars.githubusercontent.com/u/946010?v=4)](https://github.com/bilogic "bilogic (1 commits)")[![FaridAghili](https://avatars.githubusercontent.com/u/8607021?v=4)](https://github.com/FaridAghili "FaridAghili (1 commits)")[![inerba](https://avatars.githubusercontent.com/u/5882517?v=4)](https://github.com/inerba "inerba (1 commits)")[![jeffersongoncalves](https://avatars.githubusercontent.com/u/411493?v=4)](https://github.com/jeffersongoncalves "jeffersongoncalves (1 commits)")[![JensDeNijs](https://avatars.githubusercontent.com/u/79997030?v=4)](https://github.com/JensDeNijs "JensDeNijs (1 commits)")

---

Tags

debugfilamenthacktoberfestlaravellog-viewerlogsloglaravelfilamentViewer

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/achyutn-filament-log-viewer/health.svg)

```
[![Health](https://phpackages.com/badges/achyutn-filament-log-viewer/health.svg)](https://phpackages.com/packages/achyutn-filament-log-viewer)
```

###  Alternatives

[jackiedo/log-reader

An easy log reader and management tool for Laravel

151376.5k4](/packages/jackiedo-log-reader)[tapp/filament-authentication-log

Filament authentication log plugin.

51143.5k3](/packages/tapp-filament-authentication-log)[kabbouchi/laravel-ward

25364.1k1](/packages/kabbouchi-laravel-ward)[noxoua/filament-activity-log

A Laravel package that simplifies activity logging in the Filament admin panel, with support for logging create, update, delete, and restore actions. It integrates with the 'spatie/laravel-activitylog' package and includes a modernized activity log viewing page.

7151.5k](/packages/noxoua-filament-activity-log)[alizharb/filament-activity-log

A powerful, feature-rich activity logging solution for FilamentPHP v4 &amp; v5 with timeline views, dashboard widgets, and revert actions.

2326.6k](/packages/alizharb-filament-activity-log)[a2insights/filament-saas

Filament Saas for A2Insights

161.1k](/packages/a2insights-filament-saas)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
