codenotary / immudb

immudb - immutable database based on zero trust, SQL/Key-Value/Document model, tamperproof, data change history
https://immudb.io
Other
8.57k stars 344 forks source link

The immudb logs are not availabe #1883

Open jaypatel-24 opened 10 months ago

jaypatel-24 commented 10 months ago

I have properly configured the logs by running the command sudo ./immudb -d --logfile /tmp/immudb/immudb.log

the log file is getting generated and printed the logs of starting and shutdown of immudb.

The logs after the starting are not available in log file. Example:


() | | | | | | | | ' ` | ' ` | | | |/ ` | ' \ | | | | | | | | | | | | || | (| | |) | ||| || ||| || ||_,|_,|_.__/

immudb 1.5.0 Commit : 6103e9a00dd062f466b5a275cbaea18a647c69a1 Built at: Tue, 20 Jun 2023 13:15:58 UTC ================ Config ================ Data dir : ./data Address : 0.0.0.0:3322 Metrics address : 0.0.0.0:9497/metrics Sync replication : false Config file : configs/immudb.toml Log file : /tmp/immudb/immudb.log Log format : text Max recv msg size: 33554432 Auth enabled : true Dev mode : false Default database : defaultdb Maintenance mode : false Synced mode : true

Superadmin default credentials Username : immudb Password : immudb

immudb2023/11/29 07:08:11 INFO: Opening database 'systemdb' {replica = false}... immudb2023/11/29 07:08:11 INFO: Syncing Binary Linking at 'data/systemdb'... immudb2023/11/29 07:08:11 INFO: Binary Linking up to date at 'data/systemdb' immudb2023/11/29 07:08:11 INFO: Reading snapshots at 'data/systemdb/index/commit'... immudb2023/11/29 07:08:11 INFO: Index 'data/systemdb/index' {ts=1, discarded_snapshots=0} successfully loaded immudb2023/11/29 07:08:11 INFO: Successfully read snapshots at 'data/systemdb/index/commit' . . .

(there are some more lines)

But the logs related to anything else doesn't show up in log file. The logs for immugw request even doesn't show up.

prog8 commented 10 months ago

As far as I see there are all INFO logs getting to the file but indeed when you try LOG_LEVEL=debug then it turns out that DEBUG messages go to stdout instead of the file

jaypatel-24 commented 10 months ago

I have not changed the log level. I did not change anything, I just ran immudb using the command

sudo ./immudb -d --logfile /tmp/immudb/immudb.log

What log level do I need to set to get all the logs combined error, warn and, info.

I have downloaded immudb and immugw using wget commands and running the above command to start immudb.

prog8 commented 10 months ago

My point was that actually everything works as far as I could see on my machine. Are you sure there were any warnings or errors that you expected to see? Maybe there was nothing to log? Can you run the command without -d so you see in your stdin and stderr if there are really logs that got there instead of file?

jaypatel-24 commented 10 months ago

can you please join in this meet for just 5 mins https://meet.google.com/nka-guaw-imo

prog8 commented 10 months ago

Sorry, I'm a newbie when it comes to immudb. Just saw a message and decided to share my thoughts.

jaypatel-24 commented 10 months ago

Can you please share with me your linked in profile? So that I can send you a connection request.