Git Product home page Git Product logo

Comments (10)

sweatybridge avatar sweatybridge commented on September 28, 2024 7

Hi @user72356, yes we have just released supabase/logflare docker image. We will be testing integration on self-hosted and CLI in the next few weeks.

from cli.

sweatybridge avatar sweatybridge commented on September 28, 2024 3

Hi @plmwd , the local postgres logs are stored inside the postgres container, timestamped by the hour.

$ docker exec -it supabase_db_supabase-dev ls -la /var/log/postgresql
total 228
drwxrwxr-t 1 root     postgres   4096 Sep  2 05:54 .
drwxr-xr-x 1 root     root       4096 Jan 27  2022 ..
-rw-r----- 1 postgres postgres 216553 Sep  2 05:55 server_0500_UTC.csv
-rw-r----- 1 postgres postgres    406 Sep  2 05:54 server_0500_UTC.log

We are actively looking into exposing logs explorer in local studio so that it's as easier view and filter Postgres logs. For other services like Kong, the currently supported way is to tail via docker logs.

docker logs -f supabase_kong_supabase-dev

from cli.

sweatybridge avatar sweatybridge commented on September 28, 2024 3

It seems that the pgsql logs have been disabled. Those are not generated anymore :(

We have changed the postgres logs settings back to stdout so you should be able to get the local postgres logs by docker logs command:

docker logs -f supabase_db_<project>

If you have a long running local development setup and the logs become too much for docker to handle, you can enable logflare to store the logs on BigQuery.

from cli.

dsebastien avatar dsebastien commented on September 28, 2024 1

Just re-enabling the pgsql logs in the docker container would make our lives much easier. Is it a problem to do so while waiting for better options with logflare?

from cli.

plmwd avatar plmwd commented on September 28, 2024

How do you even view db logs?

from cli.

user72356 avatar user72356 commented on September 28, 2024

Any updates on this?

from cli.

user72356 avatar user72356 commented on September 28, 2024

Hi @plmwd , the local postgres logs are stored inside the postgres container, timestamped by the hour.

$ docker exec -it supabase_db_supabase-dev ls -la /var/log/postgresql
total 228
drwxrwxr-t 1 root     postgres   4096 Sep  2 05:54 .
drwxr-xr-x 1 root     root       4096 Jan 27  2022 ..
-rw-r----- 1 postgres postgres 216553 Sep  2 05:55 server_0500_UTC.csv
-rw-r----- 1 postgres postgres    406 Sep  2 05:54 server_0500_UTC.log

We are actively looking into exposing logs explorer in local studio so that it's as easier view and filter Postgres logs. For other services like Kong, the currently supported way is to tail via docker logs.

docker logs -f supabase_kong_supabase-dev

@sweatybridge are you guys still looking at exposing the local logs in the studio?

from cli.

dsebastien avatar dsebastien commented on September 28, 2024

It seems that the pgsql logs have been disabled. Those are not generated anymore :(

from cli.

user72356 avatar user72356 commented on September 28, 2024

Hi @user72356, yes we have just released supabase/logflare docker image. We will be testing integration on self-hosted and CLI in the next few weeks.

How is this coming along? I saw some docs stating I have to have a Google Cloud account just to see the local logs? Did I understand that correctly?

from cli.

sweatybridge avatar sweatybridge commented on September 28, 2024

I saw some docs stating I have to have a Google Cloud account just to see the local logs? Did I understand that correctly?

Yes, at its current stage logflare does require a GCP account which is rather counter intuitive for local development.

That said, the logflare team is working on supporting postgres as the storage backend. But it's gonna take some time because we have to rework the BigQuery queries as well. You can follow the logflare repo for more status updates.

from cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.