Comments (10)
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.
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.
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.
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.
How do you even view db logs?
from cli.
Any updates on this?
from cli.
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.logWe 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.
It seems that the pgsql logs have been disabled. Those are not generated anymore :(
from cli.
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.
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)
- Error evaluating "env(AUTH_GITHUB_CLIENT_ID)": environment variable AUTH_GITHUB_CLIENT_ID is unset. HOT 2
- Migration file mistake when changing primary key column from int to uuid with gen_random_uuid() as default
- Generate const array of possible enum values
- Support xUnit style tests with pg_prove --runtests flag in supabase db test HOT 1
- data missing on supabase db dump HOT 2
- How to update the PostgreSQL config in the local environment? HOT 1
- `supabase migration new` should take a new flag `-sql-from-file` HOT 3
- Failed to start supabase HOT 2
- ERROR: type "geography" does not exist (SQLSTATE 42704) when running `db diff` HOT 1
- Schema-specific DB reset
- Leverage configuration to specify targeted schemas
- URGENT: Supabase DB Dump Corrupting Data Due to UNIQ HOT 2
- unable to see edge functions in local development studio + when doing supabase login it only goes to supabase url and not to self hosted version
- Enable `COPY` for seed and migrations HOT 2
- An error occurs in the "user_metadata" column of the "objects" table while running `npx supabase db reset` command. HOT 2
- Publications are not dropped when resetting remote database
- supabase start CLI command failing to pull from AWS ECR HOT 5
- Functions debugging broken HOT 4
- env replacement in [auth.sms.twilio] / `account_sid` HOT 2
- DB Diff causes "cannot drop type" when adding value to enum used in function parameter HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.