Help Docs

Laravel Logs

Laravel is a free, open-source PHP web framework primarily used for building custom web applications in PHP. With Site24x7 AppLogs native support of Laravel logs, you can simply write your Laravel application log messages to files using Laravel's built-in logging system and track them down using Site24x7. Learn more about log management with Site24x7.

Instructions:

  1. Log in to your Site24x7 account.
  2. Download and install the Site24x7 Server Monitoring agent (Windows | Linux).
  3. Go to Admin > AppLogs > Log Profile and select Add Log Profile.
  4. Enter the Profile Name.
  5. For Choose the Log Type, select Laravel Logs from the drop-down list.
    • The Pattern and Sample Logs are displayed below. By default, this is the log pattern identified by Site24x7 AppLogs for Laravel logs:
      [$Datetime:date$] $Environment$.$Level$: $Message$
      This log is separated into fields, each of which will take its respective value and will then be uploaded to Site24x7.
    • Sample Logs:
      [2021-06-31 12:47:33] production.ERROR: Route [admin.services.customer.show] not defined
  6. You can also add a Custom Log Pattern instead of the default one. To do so, click on the pencil icon to edit log type and specify your pattern. Laravel log profile
  7. Select the Log Source. By default, the below paths are used as file source.
    Linux: "/var/www/html/storage/logs/laravel*.log",
    "/var/www/*/storage/logs/laravel*.log",
    "/var/www/html/*/storage/logs/laravel*.log"
    If your source path is different from the default path, specify it while adding the log profile.
  8. You can also associate this log profile with monitors, monitor groups, or corresponding severs. Learn more.
  9. Click Save.

Related log types

Was this document helpful?

Shortlink has been copied!