Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ticketmaster7's avatar

How to access laravel.log file from my hetzner server deployed through Laravel forge ?

I wanted to access my laravel.log file but i don't understand how can i access that file ? Where it is located and basically i want to download it.

Please guide.

0 likes
4 replies
rhand's avatar

On any server you should be able to locate the log at default location storage/logs/laravel.log . And that inside the directory where the application is stored so with a Ploi or Forge provisioned one at ~/site.com/storage/logs/laravel.log

You can download it using SFTP or just ssh into the server and use tail -n 100 ~/site.com/storage/logs/laravel.log to check if from the terminal.

newbie360's avatar

@ticketmaster7 For me

C:\Users\xxxxxxx\.ssh\config

Host abc
    HostName 123.456.7.89
    User forge
    Port 22
    IdentityFIle ~/.ssh/id_rsa

when i need ssh to the server

ssh abc

when i need download file from the server

scp abc:~/abc.com/storage/logs/laravel.log e:/
ticketmaster7's avatar

Is there any way i can just view this file on the browser ? Will telescope on production view this file for me ?

Please or to participate in this conversation.