Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The immudb logs are not availabe #1883

Open
jaypatel-24 opened this issue Nov 29, 2023 · 6 comments
Open

The immudb logs are not availabe #1883

jaypatel-24 opened this issue Nov 29, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@jaypatel-24
Copy link

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 : 6103e9a
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.

@jaypatel-24 jaypatel-24 added the enhancement New feature or request label Nov 29, 2023
@prog8
Copy link

prog8 commented Nov 29, 2023

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
Copy link
Author

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
Copy link

prog8 commented Nov 29, 2023

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
Copy link
Author

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

@prog8
Copy link

prog8 commented Nov 29, 2023

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

@jaypatel-24
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants