Skip to content

Setup and system administration ​

System administrators set up Lumberjack, manage teams and users, and look after the server.

First-run setup ​

A Lumberjack without users sends every page to /setup, where you choose the name, email and password of the first system administrator. There is no default account. The administrator starts without a team and lands on Administration > All teams, where teams are created.

Protect setup with a token ​

Until setup is done, whoever opens Lumberjack first becomes its administrator. On a server reachable from outside, set a setup token:

dotenv
LUMBERJACK_SETUP_TOKEN=a-long-random-string

Setup then asks for the token too. Generate one with openssl rand -hex 24.

The setup flag ​

When the first user exists, Lumberjack writes the file storage/app/setup/complete, and writes it again if it goes missing. To make Lumberjack check its setup again, delete the file, through the storage mount or with:

bash
php artisan setup:clear

php artisan migrate:fresh deletes the flag too.

What /setup shows ​

State/setup
No usersSetup form, which asks for the token when one is set
Users, but no active administratorRecovery: open only with LUMBERJACK_SETUP_TOKEN, otherwise 404
An active administrator exists404

An administrator is active when they are not suspended. /setup is rate limited.

Lost the last administrator? ​

From a shell on the server, or with docker compose exec lumberjack ...:

bash
php artisan lumberjack:make-admin someone@example.com

Or set LUMBERJACK_SETUP_TOKEN and create a new administrator through /setup.

The last active administrator cannot remove their own administration, suspend themselves or delete their own account.

Command line ​

CommandWhat it does
php artisan lumberjack:create-userCreates a user. Takes --name, --email and --password, and asks for any you leave out. --admin makes them an administrator. The first user is always one. --team="Name" makes them the owner of a new team.
php artisan lumberjack:make-admin {email}Makes an existing user an administrator.
php artisan lumberjack:make-admin {email} --revokeRemoves administration, unless they are the last active administrator.
php artisan setup:clearDeletes the setup flag.
php artisan lumberjack:pruneDeletes data older than its retention. Also runs every day by itself.
php artisan webpush:vapid --showPrints a new key pair for browser notifications, to set as VAPID_PUBLIC_KEY and VAPID_PRIVATE_KEY. Keys are generated automatically; set them to keep them across a database restore.

New VAPID keys make every browser turn notifications on again.

Scheduled commands ​

The scheduler runs these by itself.

CommandRunsWhat it does
lumberjack:mark-stuck-jobsEvery minuteMarks job runs that outlived their timeout as stuck.
lumberjack:mark-missed-tasksEvery minuteMarks scheduled tasks whose run is overdue as missed.
lumberjack:return-ignored-issuesEvery minuteRe-opens issues whose ignore period is over.
lumberjack:send-watch-digestsEvery minuteMails watchers the grouped updates on their issues.
lumberjack:check-queue-backlogsEvery minuteAlerts on queues over their backlog threshold, and when they recover.
lumberjack:run-health-checksEvery minuteRuns the health checks that are due.
lumberjack:fetch-data-sourcesEvery minuteFetches the data source sources that are due.
lumberjack:notify-offline-agentsEvery minuteTells members who want it when an agent goes offline.
lumberjack:sample-systemEvery minuteRecords the CPU, memory and disk of the server, and mails administrators when the disk is nearly full.
horizon:snapshotEvery 5 minutesRecords queue metrics for the Horizon dashboard.
lumberjack:check-for-updateEvery 6 hoursAsks GitHub whether a newer release is out.
model:pruneEvery hourDeletes agents and health check hosts not seen for 24 hours.
lumberjack:archive-silent-health-checksEvery dayArchives reported health checks that sent nothing for a week.
lumberjack:pruneEvery dayDeletes data older than its retention.

Mail ​

Every mail has an HTML and a plain-text version, and follows the reader's light or dark mode where the mail client supports it.

MailSent toFrom
New error, regression, escalationthe rule's mail channels, and watchersalerts
Note, resolved or ignored, bulk resolvethe rule's mail channelsalerts
Health check down, degraded, recoveredthe rule's mail channelsalerts
Queue backlog, queue recoveredthe rule's mail channelsalerts
Test messagethe channel being testedalerts
Mentionthe member a note tagsnotifications
Assigned, taken offthe member concerned, once per actionnotifications
Updates on a watched issueits watchersnotifications
New issues, health checks and the restmembers who turned on that mailnotifications
Invitationthe invited addressnotifications
Server disk nearly fullevery administratornotifications
Password reset, email confirmationthe accountnotifications

Subjects start with the project in brackets, such as [Demo] New error: DEMO-12 RuntimeException. The footer of each mail says why it was sent and where to change that. An address gets one mail per thing that happened, however many rules lead to it.

VariableDefaultWhat it does
MAIL_ALERTS_FROM_ADDRESSMAIL_FROM_ADDRESSSender of what alert rules send.
MAIL_NOTIFICATIONS_FROM_ADDRESSMAIL_FROM_ADDRESSSender of personal mail: everything else above.
MAIL_ALERTS_FROM_NAMELumberjackSender name of alert mail.
MAIL_NOTIFICATIONS_FROM_NAMELumberjackSender name of personal mail.

Previewing mails ​

In local development (APP_ENV=local), sign in and open /dev/mail. It lists every mail with sample data, in light and dark mode and as plain text, without sending anything.

Administration pages ​

Administrators see an Administration section in the sidebar. Everything they do there goes into the audit log. Administrators can see every team and project, whether or not they are members.

  • All teams: every team with its owner, members, projects and errors of the last 24 hours. Open a team to work in it, delete it with all its data, or create one. The owner can be an existing user, or the email of someone without an account, who is then invited to own the team.
  • All users: 50 a page, with Search by name or email and badges for Administrator, Suspended and Must change password. Invite someone to a team as admin or member, send a password reset link, require a new password, make or revoke administrators, and suspend or reinstate users. Administrators cannot do any of this to their own account.
  • Audit log: who did what and when, 50 a page. It records teams created, deleted or opened, users invited, suspended or reinstated, administration granted or revoked, password resets sent and new passwords required.
  • System: how the server this Lumberjack runs on is doing. See System.
  • Retention: how long this Lumberjack keeps each kind of data, as the default and the maximum for every team. See Retention.
  • Horizon: the queue dashboard at /horizon, also in the command palette. Only system administrators can open it.

Administration > Retention: the default and maximum for every kind of data

System ​

Administration > System shows the server Lumberjack itself runs on, not the servers of your apps (those are on each project's overview):

  • CPU load, memory and disk as they were at the last sample, and over the last hour, day or week. The scheduler samples them every minute. CPU load is the load average over a minute per core, memory is what is not available to a new program, and disk is the disk Lumberjack's own files are on. In a container they are the figures of the machine it runs on; a CPU or memory limit on the container itself is not read.
  • Database size and its 10 largest tables with a total of them all (Show more opens every table, sorted by size, rows or name), each under the name of the data it keeps, so it is plain which retention to shorten when space runs out.
  • Redis memory, against its limit when one is set.
  • Queues: the jobs waiting, the wait and the workers of each of Lumberjack's own queues. A long wait on ingest means the pages show what happened a while ago.

The queues and Redis are read again every 10 seconds while the page is open, the rest every minute.

A figure turns amber at 80% (CPU load: 70%) and red at 90%. When nothing has been sampled for five minutes the page says the scheduler is not running, and it still opens when Redis does not answer.

When the disk is 90% full, every administrator gets one mail. It is sent again only after the disk has been back under 85%. The samples are kept 7 days, set as Server metrics on the Retention page.

Accounts come by invitation ​

There is no public registration. Accounts come from first-run setup, an invitation or the command line. An account in no team sees a page saying so until an invitation arrives. See Teams and accounts.

Who may create teams ​

By default anyone signed in can create a team on the team page and becomes its owner. Set LUMBERJACK_TEAM_CREATION=admins to let only system administrators create teams.

Suspending a user ​

A suspended user is signed out, cannot sign in, and their MCP tokens stop working. The sign-in page answers as for a wrong password.

Requiring a new password ​

A user who must change their password can only open the security settings until they choose a new one.

About ​

Click the version at the bottom of the sidebar to open About. It shows the version, the commit it was built from, and links to the release notes, the changelog, the documentation and the source on GitHub. The GitHub mark beside the version in the sidebar opens the source too. Under them, What's new lists the changelog the install was built with, one release per section, the 10 newest first and the rest behind Show more: jump to a version from the row on top, and open or fold each. Contributors lists who made Lumberjack, each linking to their GitHub profile. The Docker image carries the list, read from GitHub when it was built. A git checkout reads it from GitHub once a day (not with LUMBERJACK_UPDATE_CHECK=false) and ends it with You?, linking to the source. The running release and anything unreleased are open. System administrators also see PHP, Laravel, the database and its size, and the queue, cache and session drivers.

The Docker image shows its release version. A git checkout shows its tag, or "dev" without git.

Update check ​

Every six hours Lumberjack asks GitHub for the latest release. When a newer one is out, system administrators see it next to the version in the sidebar and on About, with a link to its release notes. Check now on About asks right away.

The check sends nothing about your installation. Set LUMBERJACK_UPDATE_CHECK=false to turn it off, and Lumberjack makes no such request.

Security ​

Response headers ​

Every response sends:

  • X-Frame-Options: SAMEORIGIN and Content-Security-Policy: frame-ancestors 'self'
  • X-Content-Type-Options: nosniff
  • Referrer-Policy: strict-origin-when-cross-origin
  • a Permissions-Policy that turns off camera, microphone, location, payment and USB
  • Strict-Transport-Security: max-age=31536000, when APP_URL starts with https://

Browser ingest and the SDK script still work from other origins.

Set APP_URL to the address people open Lumberjack on. Links in mails, alerts and notifications always use it. TRUSTED_PROXIES lists the proxies whose X-Forwarded-* headers are trusted. See Docker.

Secrets in stored data ​

Lumberjack filters secrets out of exception, log, job and command context, and out of request URLs, before it stores them. Passwords, tokens, API keys, credentials in URLs and similar values become [filtered]. To filter more fields by name, see Extra secret fields. To filter more values, add regular expressions in config/lumberjack.php under scrubbing.value_patterns, as pattern => replacement.

A single context is stored up to 64 KB. Entries past that are replaced by [truncated] N KB.

Ingest and MCP limits ​

  • Browser ingest takes 30 batches a minute per address and key, and 300 a minute per address. A compressed body is rejected with 415.
  • An address that sends 30 unknown server tokens to /api/ingest, or unusable MCP tokens to /mcp, within a minute gets 429 until the minute is over.