Input:
{_id:ObjectID(123),ip:'123.123.123.123'}
{_id:ObjectID(123),ip:'123.123.123.123'}
{_id:ObjectID(124),ip:'123.123.123.124'}
{_id:ObjectID(125),ip:'123.123.123.125'}
Output:
{2019-03-20: 1}
{2019-03-21: 1}
{2019-03-22: 1}
I'm messing around with this all day to extract the timestamp from the mongo ID and use it to do a daily distinct count on the IP but I'm not getting it... I always end up with a per IP count, as in IP on day X was found 4 times... not unique IPs on day X.
Thanks!
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)