Re: log message in mongodb : warning: log line attempted

4,424 views
Skip to first unread message

Tad Marshall

unread,
Sep 15, 2012, 5:32:35 AM9/15/12
to mongo...@googlegroups.com
The message "warning: log line attempted (73k) over max size(10k)" is logged when a line is "too long" and it is simply to try to keep the log file a little smaller.  The beginning and ending of the line are logged, and the middle portion is replaced with a series of periods (" .......... ").

A long line like this is logged for operations that encounter some condition such as a slow insert.  Any error condition found would be reported at the beginning of the line or at the end, and hopefully there is enough context of the operation itself (i.e. the data in the query, insert or update) so that you can identify what is being worked on.

The first 3333 and last 3333 characters of the line should be logged and this should be enough to see why the log line was generated.  Long lines are not an error, but there is some reason why the line was logged in the first place, which may be an error or just logging of slow operations (by default, anything that takes over 100 milliseconds).

On Thursday, September 13, 2012 4:20:42 AM UTC-4, Stéphane wrote:
Hello,
I start to dev with mongodb (2.2). I use a replicaset with 3 nodes. Sometimes, in the mongodb logs files, I have the following warning for example : "warning: log line attempted (73k) over max size(10k)" when I perform update operations. I don't understand if the mesage is an aftermathn or not . 
- Mongod can not update the document and logs the message but the message causes a warning because is too long and we don't have the root cause, why the update operation fails ?
- For each update operation, mongodb perfoms a message log, the update is ok but in this case, the log messag is too log ?
If someone could help me to diagnostic this case
Best regards
Thx
Reply all
Reply to author
Forward
0 new messages