~bisscuitt/percona-toolkit/lsof_find

« back to all changes in this revision

Viewing changes to t/lib/SlowLogParser.t

  • Committer: Frank Cizmich
  • Date: 2014-10-13 16:33:32 UTC
  • mfrom: (608.1.20 release-2.2.11)
  • Revision ID: frank.cizmich@percona.com-20141013163332-oiybgd5ae58bubqy
merged release-2.2.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
587
587
         'ip'            => '1.2.3.8',
588
588
         'arg'           => 'administrator command: Quit',
589
589
         'Thread_id'     => '5',
590
 
         'host'          => '',
 
590
         'host'          => '1.2.3.8',
591
591
         'Rows_examined' => '0',
592
592
         'user'          => 'meow',
593
593
         'Query_time'    => '0.000002',
602
602
         'ip'            => '1.2.3.8',
603
603
         arg             => 'SET NAMES utf8',
604
604
         'Thread_id'     => '6',
605
 
         'host'          => '',
 
605
         'host'          => '1.2.3.8',
606
606
         'Rows_examined' => '0',
607
607
         'user'          => 'meow',
608
608
         'Query_time'    => '0.000899',
616
616
         'arg'           => 'SELECT MIN(id),MAX(id) FROM tbl',
617
617
         'ip'            => '1.2.3.8',
618
618
         'Thread_id'     => '6',
619
 
         'host'          => '',
 
619
         'host'          => '1.2.3.8',
620
620
         'Rows_examined' => '0',
621
621
         'user'          => 'meow',
622
622
         'Query_time'    => '0.018799',
664
664
         'arg'           => 'administrator command: Quit',
665
665
         'ip'            => '1.2.3.8',
666
666
         'Thread_id'     => '5',
667
 
         'host'          => '',
 
667
         'host'          => '1.2.3.8',
668
668
         'Rows_examined' => '0',
669
669
         'user'          => 'meow',
670
670
         'Query_time'    => '0.000002',
679
679
         'ip'            => '1.2.3.8',
680
680
         arg             => 'SET NAMES utf8',
681
681
         'Thread_id'     => '6',
682
 
         'host'          => '',
 
682
         'host'          => '1.2.3.8',
683
683
         'Rows_examined' => '0',
684
684
         'user'          => 'meow',
685
685
         'Query_time'    => '0.000899',
694
694
         'arg'           => 'administrator command: Quit',
695
695
         'ip'            => '1.2.3.8',
696
696
         'Thread_id'     => '7',
697
 
         'host'          => '',
 
697
         'host'          => '1.2.3.8',
698
698
         'Rows_examined' => '0',
699
699
         'user'          => 'meow',
700
700
         'Query_time'    => '0.018799',
709
709
         'ip'            => '1.2.3.8',
710
710
         arg             => 'SET NAMES utf8',
711
711
         'Thread_id'     => '9',
712
 
         'host'          => '',
 
712
         'host'          => '1.2.3.8',
713
713
         'Rows_examined' => '0',
714
714
         'user'          => 'meow',
715
715
         'Query_time'    => '0.000899',
731
731
         'arg'           => 'SET autocommit=1',
732
732
         'ip'            => '10.1.250.19',
733
733
         'Thread_id'     => '39387',
734
 
         'host'          => '',
 
734
         'host'          => '10.1.250.19',
735
735
         'Rows_examined' => '0',
736
736
         'user'          => 'sabapp',
737
737
         'Query_time'    => '0.000018',
745
745
         'arg'           => 'SET autocommit=1',
746
746
         'ip'            => '10.1.250.19',
747
747
         'Thread_id'     => '39387',
748
 
         'host'          => '',
 
748
         'host'          => '10.1.250.19',
749
749
         'Rows_examined' => '0',
750
750
         'user'          => 'sabapp',
751
751
         'Query_time'    => '0.000018',
769
769
         'arg'           => 'SET autocommit=1',
770
770
         'ip'            => '10.1.250.19',
771
771
         'Thread_id'     => '39796',
772
 
         'host'          => '',
 
772
         'host'          => '10.1.250.19',
773
773
         'pos_in_log'    => '0',
774
774
         'Rows_examined' => '0',
775
775
         'user'          => 'foo_app',
785
785
         'ip'            => '10.1.12.201',
786
786
         'ts'            => '081127  8:51:20',
787
787
         'Thread_id'     => '39947',
788
 
         'host'          => '',
 
788
         'host'          => '10.1.12.201',
789
789
         'pos_in_log'    => '174',
790
790
         'Rows_examined' => '226',
791
791
         'Query_time'    => '0.149435',
800
800
         'ip'            => '10.1.12.201',
801
801
         'ts'            => '081127  8:51:21',
802
802
         'Thread_id'     => '39947',
803
 
         'host'          => '',
 
803
         'host'          => '10.1.12.201',
804
804
         'pos_in_log'    => '385',
805
805
         'Rows_examined' => '0',
806
806
         'Query_time'    => '0.000005',
815
815
         'arg'           => 'SET autocommit=0',
816
816
         'ip'            => '10.1.250.19',
817
817
         'Thread_id'     => '39796',
818
 
         'host'          => '',
 
818
         'host'          => '10.1.250.19',
819
819
         'pos_in_log'    => '600',
820
820
         'Rows_examined' => '0',
821
821
         'user'          => 'foo_app',
829
829
         'arg'           => 'commit',
830
830
         'ip'            => '10.1.250.19',
831
831
         'Thread_id'     => '39796',
832
 
         'host'          => '',
 
832
         'host'          => '10.1.250.19',
833
833
         'pos_in_log'    => '782',
834
834
         'Rows_examined' => '0',
835
835
         'user'          => 'foo_app',
965
965
         Thread_id     => '5',
966
966
         arg           => 'administrator command: Quit',
967
967
         cmd           => 'Admin',
968
 
         host          => '',
 
968
         host          => '1.2.3.8',
969
969
         ip            => '1.2.3.8',
970
970
         pos_in_log    => '0',
971
971
         user          => 'meow',
980
980
         arg           => 'SET NAMES utf8',
981
981
         cmd           => 'Query',
982
982
         db            => 'db',
983
 
         host          => '',
 
983
         host          => '1.2.3.8',
984
984
         ip            => '1.2.3.8',
985
985
         pos_in_log    => '221',
986
986
         user          => 'meow',
995
995
         arg           => 'administrator command: Quit',
996
996
         cmd           => 'Admin',
997
997
         db            => 'db2',
998
 
         host          => '',
 
998
         host          => '1.2.3.8',
999
999
         ip            => '1.2.3.8',
1000
1000
         pos_in_log    => '435',
1001
1001
         user          => 'meow',
1184
1184
         arg           => 'SELECT missing_a_schema_above from crash_me',
1185
1185
         bytes         => 43,
1186
1186
         cmd           => 'Query',
1187
 
         host          => '',
 
1187
         host          => '10.1.12.30',
1188
1188
         ip            => '10.1.12.30',
1189
1189
         pos_in_log    => '0',
1190
1190
         ts            => '081126 13:08:25',
1319
1319
         Last_errno    => 0,
1320
1320
         Killed        => 0,
1321
1321
         db            => 'test_db',
1322
 
         host          => '',
 
1322
         host          => '127.0.0.1',
1323
1323
         Schema        => 'test_db',
1324
1324
         ip            => '127.0.0.1',
1325
1325
         timestamp     => '1111111111',
1340
1340
         arg            => 'update t set b = b + 30 where user_id=1',
1341
1341
         bytes          => 39,
1342
1342
         cmd            => 'Query',
1343
 
         host           => '',
 
1343
         host           => '127.0.0.1',
1344
1344
         ip             => '127.0.0.1',
1345
1345
         pos_in_log     => 596,
1346
1346
         timestamp      => '2222222222',