[SERVER-10392] Can not get log from eval Created: 01/Aug/13  Updated: 10/Dec/14  Resolved: 01/Aug/13

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Minor - P4
Reporter: Chimeng Wong Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

mongodb 2.4.5, redhat 5.7


Participants:

 Description   

I can not get global log now, but i successful get it before. i think it is a bug.



 Comments   
Comment by Chimeng Wong [ 01/Aug/13 ]

Thanks a lot !

Comment by Scott Hernandez (Inactive) [ 01/Aug/13 ]

It looks like you are not correctly using quotes, I get the same error if I run your example in my bash terminal. Please try this (note that I have replaced the inner quotes with single quotes):

mongo --eval="printjson(db.adminCommand({getLog:'global'}))"

In general questions like this are best asked in the community group: https://groups.google.com/group/mongodb-user

If this does not solve your issue please let us know or try using the community group.

Generated at Thu Feb 08 03:23:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.