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

booni3's avatar

MySQL logs to papertrail on forge

I am logging system and application logs to papertrail using forge. I would like to get my SQL logs added to paper trail also. I asked papertrail about this and they suggested installing remote_syslog2.

However as Forge is already taking care of this, is there a way already within the system to enable it?

0 likes
2 replies
aurawindsurfing's avatar

I belive forge does not support that. The easiest would be to go directoy from your cli as they suggested.

shez1983's avatar

i am not sure if this will work but you could create a cronjob (laravel command) that would take the mysql log and then for each line just do \Log::info(''') so your laravel will echo it to papertrail

Please or to participate in this conversation.