-
Notifications
You must be signed in to change notification settings - Fork 17
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
mongotail [db] --follow
exits after 1 second
#24
Comments
Running All of these make it difficult to script mongotail, or to explain how to others to use it; I'm looking for something that can immediately start tailing the database logs. |
@kevinburke You are right. It would be a good improvements, and the last behavior is a bug actually. I'll try to implement the changes, but it will not be soon. Patchs are welcome :) |
It always just exits for me. I can't get it to work. |
FWIW, I implemented a tool that has the behavior I want, https://github.com/kevinburke/read-mongo-logs |
@errorx666 did you solve the issue? Did you activate first the profiler with the Mongotail has the same syntax to connect to a database that the command For instance, if you are executing |
@errorx666 indeed, it did not work for me either. verbose did not do the trick either. connection confirmed. |
Lets say you try to connect with your database with:
Can you try in the same machine execute:
(note that you have to make the test in the same machine, using the same connection string, in the example |
I installed the tool and am running
mongotail [db] --follow
. I expect that the command will block until I kill it withctrl+c
. Instead, it exits after 1 second, without printing anything.It would be good if it warned that you needed to run with
--level=2
, if--level=2
was the default mode, or otherwise displayed a warning or error, instead of exiting without displaying any messages.The text was updated successfully, but these errors were encountered: