S
Supabase•5d ago
loup

Logs & Analytics in self hosted ?

I was wondering why in Supabase self hosted, Logs & Analytics section is empty (for every tabs) ? I mean, logs are stored in volumes (and are pretty huge), but why I can't access them ? Thx for help !
18 Replies
inder
inder•5d ago
Are you running instance on coolify/dokploy?
loup
loupOP•5d ago
Nop, with docker compose only (in VPS) But its actually the same no ?
inder
inder•5d ago
You must be using some old version. I tried just now and its working fine.
loup
loupOP•5d ago
During the time, the docker compose from supabase changed, but I have the latest one : https://github.com/recomendapp/supabase/blob/main/docker-compose.yml
GitHub
supabase/docker-compose.yml at main · recomendapp/supabase
Contribute to recomendapp/supabase development by creating an account on GitHub.
loup
loupOP•5d ago
Seems pretty weird..
inder
inder•5d ago
I will try it locally later and get back to you. But a quick glance and its not latest. A few image versions were updated a couple of days ago. Were the logs present before?
loup
loupOP•5d ago
Ive actually never seen any logs in the Supabase web ui Im gonna try update all image to see
inder
inder•5d ago
Try on a new instance first. I have noticed in the past when updating analytics image it causes issues with already running projects. I think the img versions you have now should've worked but will test it later Will let you know if things can work with any config changes There is an issue with edge function logs and cron logs but other logs work with the current versions
loup
loupOP•5d ago
Np ive update my production setup directly ahah, its working ! So I guess its new feature (I means seen anayltics in supabase dashboard self hosted) because the last 2 years, wasnt working...
inder
inder•5d ago
There were some versions before where this was an issue I have only been self hosting supabase since last one year so don't know about things before that
loup
loupOP•5d ago
Well, lot of red stuff 😅
No description
loup
loupOP•5d ago
Np, thx a lot for your help !
inder
inder•5d ago
Logs were always stored. The issue was just with dashboard. They are stored in _supabase db analytics schema You will still see issues with edge function and cron logs so you can look at them directly in _supabase db Also just a heads up with the current studio image, there is an issue with uploads from storage tab Sdk works fine. This is a dashboard issue.
loup
loupOP•5d ago
Okay, thx for the info (in my case I only upload throught api)
loup
loupOP•5d ago
last little question, is it normal for not having any logs in realtime ?
No description
loup
loupOP•5d ago
I guess bc I use broadcast instead of realtime
inder
inder•4d ago
I remember fixing this issue and I made a note about this somewhere. Will get back to you after I get home This is not because of broadcast that I can assure you @loup Replace this line https://github.com/supabase/supabase/blob/master/docker/volumes/logs/vector.yml#L36 with this
realtime: 'starts_with(string!(.appname), "realtime-dev")'
realtime: 'starts_with(string!(.appname), "realtime-dev")'
This should work
loup
loupOP•4d ago
Yes working great ! thx again

Did you find this page helpful?