I don't think the 'time' value is valid. If it incorporates whitespace, it needs to be: "new Date()".
Playing around with ndb_mongodb
getting this error:
ERROR: ndb_mongodb [mongodb_client.c:262]: mongodbc_exec_cmd(): Failed to run command: lexical error: invalid char in json text
query is very simple:
db.cdrs.insert({time:new Date(),src_user:"kelvin",term_ani:"14112",src_domain:"
domain.com",src_ip:"0",dst_ouser:"18188",dst_user:"18112",dst_domain:"
domain.com"})
which is inside a pv
mongodb_cmd("mgs1", "datab", "cdrs", "$var(MNG_MISSED)", "mgr1");
tried this:
insert({time:new Date(),src_user:"kelvin",term_ani:"14112",src_domain:"
domain.com",src_ip:"0",dst_ouser:"18188",dst_user:"18112",dst_domain:"
domain.com"})
and other combinations, same error
any ideas? i guess we need some more examples on the documentation