Setup Options

Nightwatch can ingest Laravel logs in real time. Once configured, logs will appear in the Event Stream inside Nightwatch — fully searchable and correlated with other event types in real time.

There are several ways to configure Nightwatch as part of your logging setup.

Option 1: Add Nightwatch to the Log Stack (Recommended)

If you’re using the default stack driver, you can simply add Nightwatch to the list of channels in your .env file:

LOG_CHANNEL=stack
LOG_STACK=single,nightwatch

Option 2: Send Logs to Nightwatch Only

If you’d prefer to send logs exclusively to Nightwatch, you can set it as your main log channel in your .env file:

LOG_CHANNEL=nightwatch

This disables other logging destinations like local files unless you combine them using a stack.

Option 3: Create a Custom Stack

If you’re using a custom log channel (e.g. syslog, etc.) and want to use it in combination with Nightwatch, you can create a custom stack in your .env file:

LOG_CHANNEL=stack
LOG_STACK=syslog,nightwatch

For more information on Logging channels and how to combine them, refer to Laravel’s logging documentation.

Once Nightwatch is set up and running, you may want to explore some advanced options to customize how data is collected from your Laravel application.