@@ -254,25 +254,35 @@ The following is an example record from a JSON-formatted
254
254
"payload" : {
255
255
"$db" : "test",
256
256
"aggregate" : "restaurants",
257
- "cursor" : {},
257
+ "cursor" : {
258
+
259
+ },
258
260
"lsid" : {
259
261
"id" : {
260
- "$binary" : "sZEBzZOQRwe3+t/bJuLORQ ==",
262
+ "$binary" : "esmcqhiXSIWSpKGb4sOekw ==",
261
263
"$type" : "04"
262
264
}
263
265
},
264
266
"pipeline" : [
265
- { "$match" : { "borough" : "Manhattan" } },
266
- { "$group" : { "_id" : "$cuisine" } }
267
+ {
268
+ "$match" : {
269
+ "borough" : "Manhattan"
270
+ }
271
+ },
272
+ {
273
+ "$group" : {
274
+ "_id" : "$cuisine"
275
+ }
276
+ }
267
277
]
268
278
},
269
279
"payloadType" : 0
270
280
}
271
281
]
272
282
},
273
283
"connection_num" : 0,
274
- "seen" : "2018-11-15T14:39:11.324962 -05:00",
275
- "request_id" : 15
284
+ "seen" : "2018-11-15T16:28:52.870007 -05:00",
285
+ "request_id" : 13
276
286
}
277
287
278
288
Fields
@@ -495,6 +505,52 @@ The ``play`` report contents would resemble:
495
505
{
496
506
"order" : 0,
497
507
"op" : "op_msg",
508
+ "command" : "isMaster",
509
+ "ns" : "test",
510
+ "request_data" : {
511
+ "sections" : [
512
+ {
513
+ "payload" : {
514
+ "$db" : "test",
515
+ "forShell" : 1,
516
+ "isMaster" : 1
517
+ },
518
+ "payloadType" : 0
519
+ }
520
+ ]
521
+ },
522
+ "reply_data" : {
523
+ "sections" : [
524
+ {
525
+ "payload" : {
526
+ "ismaster" : true,
527
+ "localTime" : {
528
+ "$date" : "2018-11-15T21:35:01.843Z"
529
+ },
530
+ "logicalSessionTimeoutMinutes" : 30,
531
+ "maxBsonObjectSize" : 16777216,
532
+ "maxMessageSizeBytes" : 48000000,
533
+ "maxWireVersion" : 7,
534
+ "maxWriteBatchSize" : 100000,
535
+ "minWireVersion" : 0,
536
+ "ok" : 1,
537
+ "readOnly" : false
538
+ },
539
+ "payloadType" : 0
540
+ }
541
+ ]
542
+ },
543
+ "played_at" : "2018-11-15T16:35:01.84304-05:00",
544
+ "play_at" : "2018-11-15T16:35:01.842903-05:00",
545
+ "playbacklag_us" : 137,
546
+ "connection_num" : 1,
547
+ "latency_us" : 151,
548
+ "seen" : "2018-11-15T21:30:33.379675Z",
549
+ "request_id" : 21
550
+ }
551
+ {
552
+ "order" : 2,
553
+ "op" : "op_msg",
498
554
"command" : "listCollections",
499
555
"ns" : "test",
500
556
"request_data" : {
@@ -503,11 +559,13 @@ The ``play`` report contents would resemble:
503
559
"payload" : {
504
560
"$db" : "test",
505
561
"authorizedCollections" : true,
506
- "filter" : {},
562
+ "filter" : {
563
+
564
+ },
507
565
"listCollections" : 1,
508
566
"lsid" : {
509
567
"id" : {
510
- "$binary" : "bQ5if4RkRfmJUqYK0/Fvnw ==",
568
+ "$binary" : "esmcqhiXSIWSpKGb4sOekw ==",
511
569
"$type" : "04"
512
570
}
513
571
},
@@ -523,7 +581,9 @@ The ``play`` report contents would resemble:
523
581
"payload" : {
524
582
"cursor" : {
525
583
"firstBatch" : [ ],
526
- "id" : { "$numberLong" : "0" },
584
+ "id" : {
585
+ "$numberLong" : "0"
586
+ },
527
587
"ns" : "test.$cmd.listCollections"
528
588
},
529
589
"ok" : 1
@@ -532,37 +592,26 @@ The ``play`` report contents would resemble:
532
592
}
533
593
]
534
594
},
535
- "played_at" : "2018-11-15T14:58 :08.110269 -05:00",
536
- "play_at" : "2018-11-15T14:58 :08.110148 -05:00",
537
- "playbacklag_us" : 121 ,
595
+ "played_at" : "2018-11-15T16:35 :08.715002 -05:00",
596
+ "play_at" : "2018-11-15T16:35 :08.713539 -05:00",
597
+ "playbacklag_us" : 1463 ,
538
598
"connection_num" : 1,
539
- "latency_us" : 194 ,
540
- "seen" : "2018-11-15T19:57:24.468881Z ",
541
- "request_id" : 9
599
+ "latency_us" : 331 ,
600
+ "seen" : "2018-11-15T21:30:40.250311Z ",
601
+ "request_id" : 22
542
602
}
543
-
544
603
{
545
604
"order" : 4,
546
605
"op" : "op_msg",
547
- "command" : "aggregate ",
606
+ "command" : "isMaster ",
548
607
"ns" : "test",
549
608
"request_data" : {
550
609
"sections" : [
551
610
{
552
611
"payload" : {
553
612
"$db" : "test",
554
- "aggregate" : "restaurants",
555
- "cursor" : {},
556
- "lsid" : {
557
- "id" : {
558
- "$binary" : "bQ5if4RkRfmJUqYK0/Fvnw==",
559
- "$type" : "04"
560
- }
561
- },
562
- "pipeline" : [
563
- { "$match" : { "borough" : "Manhattan" } },
564
- { "$group" : { "_id" : "$cuisine" } }
565
- ]
613
+ "forShell" : 1,
614
+ "isMaster" : 1
566
615
},
567
616
"payloadType" : 0
568
617
}
@@ -572,27 +621,32 @@ The ``play`` report contents would resemble:
572
621
"sections" : [
573
622
{
574
623
"payload" : {
575
- "cursor" : {
576
- "firstBatch" : [ ],
577
- "id" : { "$numberLong" : "0" },
578
- "ns" : "test.restaurants"
624
+ "ismaster" : true,
625
+ "localTime" : {
626
+ "$date" : "2018-11-15T21:35:08.715Z"
579
627
},
580
- "ok" : 1
628
+ "logicalSessionTimeoutMinutes" : 30,
629
+ "maxBsonObjectSize" : 16777216,
630
+ "maxMessageSizeBytes" : 48000000,
631
+ "maxWireVersion" : 7,
632
+ "maxWriteBatchSize" : 100000,
633
+ "minWireVersion" : 0,
634
+ "ok" : 1,
635
+ "readOnly" : false
581
636
},
582
637
"payloadType" : 0
583
638
}
584
639
]
585
640
},
586
- "played_at" : "2018-11-15T14:58:11.616059 -05:00",
587
- "play_at" : "2018-11-15T14:58:11.615389 -05:00",
588
- "playbacklag_us" : 670 ,
641
+ "played_at" : "2018-11-15T16:35:08.715554 -05:00",
642
+ "play_at" : "2018-11-15T16:35:08.71471 -05:00",
643
+ "playbacklag_us" : 844 ,
589
644
"connection_num" : 1,
590
- "latency_us" : 869 ,
591
- "seen" : "2018-11-15T19:57:27.974122Z ",
592
- "request_id" : 11
645
+ "latency_us" : 208 ,
646
+ "seen" : "2018-11-15T21:30:40.251482Z ",
647
+ "request_id" : 23
593
648
}
594
649
595
-
596
650
Refer to :ref:`mongoreplay-report-format` for a description of each field.
597
651
598
652
.. _mongoreplay-use-monitor:
@@ -638,8 +692,49 @@ The report contents would resemble:
638
692
]
639
693
},
640
694
"connection_num" : 0,
641
- "seen" : "2018-11-15T19:57:24.469967Z",
642
- "request_id" : 10
695
+ "seen" : "2018-11-15T21:30:33.379675Z",
696
+ "request_id" : 21
697
+ }
698
+ {
699
+ "order" : 1,
700
+ "op" : "op_msg",
701
+ "command" : "aggregate",
702
+ "ns" : "test",
703
+ "request_data" : {
704
+ "sections" : [
705
+ {
706
+ "payload" : {
707
+ "$db" : "test",
708
+ "aggregate" : "restaurants",
709
+ "cursor" : {
710
+
711
+ },
712
+ "lsid" : {
713
+ "id" : {
714
+ "$binary" : "esmcqhiXSIWSpKGb4sOekw==",
715
+ "$type" : "04"
716
+ }
717
+ },
718
+ "pipeline" : [
719
+ {
720
+ "$match" : {
721
+ "borough" : "Manhattan"
722
+ }
723
+ },
724
+ {
725
+ "$group" : {
726
+ "_id" : "$cuisine"
727
+ }
728
+ }
729
+ ]
730
+ },
731
+ "payloadType" : 0
732
+ }
733
+ ]
734
+ },
735
+ "connection_num" : 0,
736
+ "seen" : "2018-11-15T16:28:52.870007-05:00",
737
+ "request_id" : 13
643
738
}
644
739
{
645
740
"order" : 1,
@@ -649,15 +744,14 @@ The report contents would resemble:
649
744
"sections" : [
650
745
{
651
746
"payload" : {
652
- "connectionId" : 1,
653
747
"ismaster" : true,
654
748
"localTime" : {
655
- "$date" : "2018-11-15T19:57:24.470Z "
749
+ "$date" : "2018-11-15T21:30:33.379Z "
656
750
},
657
751
"logicalSessionTimeoutMinutes" : 30,
658
752
"maxBsonObjectSize" : 16777216,
659
753
"maxMessageSizeBytes" : 48000000,
660
- "maxWireVersion" : 8 ,
754
+ "maxWireVersion" : 7 ,
661
755
"maxWriteBatchSize" : 100000,
662
756
"minWireVersion" : 0,
663
757
"ok" : 1,
@@ -668,9 +762,9 @@ The report contents would resemble:
668
762
]
669
763
},
670
764
"connection_num" : 0,
671
- "latency_us" : 90 ,
672
- "seen" : "2018-11-15T19:57:24.470057Z ",
673
- "request_id" : 10
765
+ "latency_us" : 174 ,
766
+ "seen" : "2018-11-15T21:30:33.379849Z ",
767
+ "request_id" : 21
674
768
}
675
769
{
676
770
"order" : 2,
@@ -682,26 +776,29 @@ The report contents would resemble:
682
776
{
683
777
"payload" : {
684
778
"$db" : "test",
685
- "authorizedCollections" : false,
686
- "filter" : {},
779
+ "authorizedCollections" : true,
780
+ "filter" : {
781
+
782
+ },
687
783
"listCollections" : 1,
688
784
"lsid" : {
689
785
"id" : {
690
- "$binary" : "bQ5if4RkRfmJUqYK0/Fvnw ==",
786
+ "$binary" : "esmcqhiXSIWSpKGb4sOekw ==",
691
787
"$type" : "04"
692
788
}
693
789
},
694
- "nameOnly" : false
790
+ "nameOnly" : true
695
791
},
696
792
"payloadType" : 0
697
793
}
698
794
]
699
795
},
700
796
"connection_num" : 0,
701
- "seen" : "2018-11-15T19:57:44.316752Z ",
702
- "request_id" : 13
797
+ "seen" : "2018-11-15T21:30:40.250311Z ",
798
+ "request_id" : 22
703
799
}
704
800
801
+
705
802
Refer to :ref:`mongoreplay-report-format` for a description of each field.
706
803
707
804
Inspect Live MongoDB Traffic
0 commit comments