Skip to content

Instantly share code, notes, and snippets.

@dan-at-mimas
Last active October 17, 2018 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dan-at-mimas/0e0496d2414bfdc29232bdc975948ddc to your computer and use it in GitHub Desktop.
Save dan-at-mimas/0e0496d2414bfdc29232bdc975948ddc to your computer and use it in GitHub Desktop.
aggregation output
db.aggregate_test.find().pretty();
{
"_id" : ObjectId("5bc74df9962d74e77d000001"),
"@version" : "1",
"task_id" : "0.0.0.0Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko/results?terms=test",
"iso_timestamps" : [
{
"iso_timestamp" : ISODate("2018-10-08T14:14:08Z")
}
],
"@timestamp" : ISODate("2018-10-17T14:58:01.499Z"),
"clicks" : 1,
"double_click" : false
}
{
"_id" : ObjectId("5bc74dfa962d7418a9000002"),
"@version" : "1",
"task_id" : "0.0.0.0Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko/results?terms=test",
"iso_timestamps" : [
{
"iso_timestamp" : ISODate("2018-10-08T14:17:45Z")
}
],
"@timestamp" : ISODate("2018-10-17T14:58:01.521Z"),
"clicks" : 1,
"double_click" : false
}
{
"_id" : ObjectId("5bc74dfa962d7418a9000003"),
"@version" : "1",
"task_id" : "0.0.0.0Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko/results?terms=test",
"iso_timestamps" : [
{
"iso_timestamp" : ISODate("2018-10-08T14:18:57Z")
}
],
"@timestamp" : ISODate("2018-10-17T14:58:01.525Z"),
"clicks" : 1,
"double_click" : false
}
{
"_id" : ObjectId("5bc74dfa962d7418a9000004"),
"@version" : "1",
"task_id" : "0.0.0.0Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko/results?terms=test",
"iso_timestamps" : [
{
"iso_timestamp" : ISODate("2018-10-08T14:19:45Z")
}
],
"@timestamp" : ISODate("2018-10-17T14:58:01.526Z"),
"clicks" : 1,
"double_click" : false
}
{
"_id" : ObjectId("5bc74dfa962d7418a9000005"),
"@version" : "1",
"task_id" : "0.0.0.0Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko/results?terms=test",
"iso_timestamps" : [
{
"iso_timestamp" : ISODate("2018-10-08T14:20:29Z")
}
],
"@timestamp" : ISODate("2018-10-17T14:58:01.526Z"),
"clicks" : 1,
"double_click" : false
}
{
"_id" : ObjectId("5bc74dfa962d7418a9000006"),
"@version" : "1",
"task_id" : "0.0.0.0Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko/results?terms=test",
"iso_timestamps" : [
{
"iso_timestamp" : ISODate("2018-10-08T14:21:51Z")
}
],
"@timestamp" : ISODate("2018-10-17T14:58:01.527Z"),
"clicks" : 1,
"double_click" : false
}
{
"_id" : ObjectId("5bc74dfa962d7418a9000007"),
"@version" : "1",
"task_id" : "0.0.0.0Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko/results?terms=test",
"iso_timestamps" : [
{
"iso_timestamp" : ISODate("2018-10-08T14:22:27Z")
}
],
"@timestamp" : ISODate("2018-10-17T14:58:01.528Z"),
"clicks" : 1,
"double_click" : false
}
{
"_id" : ObjectId("5bc74e20962d743b47000008"),
"@version" : "1",
"task_id" : "0.0.0.0Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko/results?terms=test",
"iso_timestamps" : [
{
"iso_timestamp" : ISODate("2018-10-08T14:23:05Z")
}
],
"@timestamp" : ISODate("2018-10-17T14:58:40.506Z"),
"clicks" : 1,
"double_click" : false
}
@dan-at-mimas
Copy link
Author

New output after removing set iso_timestamps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment