Noctora
Getting started
Create an account, set up your Organization, connect your Laravel app and see its first request in Noctora.
This page takes you from a new account to your first request in Noctora. You need a Laravel app and a server where it can run one long-lived process.
Create your account
Section titled “Create your account”Choose Start free, then Create a Spectivis account on the sign-in page. Noctora signs you in through Spectivis Accounts and keeps no passwords. For account matters, see Accounts.
Set up your Organization
Section titled “Set up your Organization”Organizations live in Spectivis Accounts. Create one there, or use one you’re already in, and turn on Noctora access for it. It then shows up in Noctora.
The first time you open it, an Owner or Admin sets it up. If you’re the Owner, choose Set up with my Free package to give it 500,000 Events a month. An Organization with no Events stores no data.
Create an Application
Section titled “Create an Application”On the Organization’s Applications tab, choose Create Application. Name it after your Laravel app and list the Environments it runs in, such as production and staging. You can add Environments later.
Create a token
Section titled “Create a token”Open an Environment’s Settings page and choose Create token. A dialog shows the token and walks you through the rest of this page.
Copy the token straight away, because it is only shown once. Creating a new token replaces the old one, which stops working.
Install the package
Section titled “Install the package”In your Laravel app:
composer require laravel/nightwatchAdd the token and Noctora’s URL to the app’s .env:
NIGHTWATCH_TOKEN=your-environment-tokenNIGHTWATCH_BASE_URL=https://noctora.spectivis.com/appIf you cache config with php artisan config:cache or php artisan optimize, the agent can’t read NIGHTWATCH_BASE_URL from .env. Set it as a real environment variable instead. Running the agent shows how.
Keep the agent running
Section titled “Keep the agent running”The agent sends what the package records to Noctora. To try it, start it in a terminal:
php artisan nightwatch:agentOn a server it must run at all times. If it stops, after a deploy or a reboot for example, monitoring stops with it. See Running the agent for Supervisor, systemd, Laravel Forge and Docker.
See your data
Section titled “See your data”With the agent running, run one command that produces telemetry:
php artisan aboutAny artisan command or web request works. php artisan nightwatch:status only checks that the app can reach the local agent, and sends nothing to Noctora.
The token dialog’s last step shows Agent signed in and First data received as they happen, then links to the Environment’s Requests page.
If nothing arrives
Section titled “If nothing arrives”- The agent hasn’t signed in. Check
NIGHTWATCH_TOKENandNIGHTWATCH_BASE_URL, thatphp artisan nightwatch:agentis running, and that the server can reach the base URL. The agent’s output says why a sign-in failed. - The agent signed in but no data arrived. Run
php artisan nightwatch:statusto check the app reaches the agent, then runphp artisan aboutagain. - Data arrived but nothing shows. Check on the Organization’s Usage page that it has Events. Without Events, Noctora accepts deliveries but doesn’t store their Records. See Usage and limits.