diff --git a/tests/fixtures/centos-7.7/last-w.json b/tests/fixtures/centos-7.7/last-w.json new file mode 100644 index 00000000..e892980a --- /dev/null +++ b/tests/fixtures/centos-7.7/last-w.json @@ -0,0 +1 @@ +[{"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Feb 28 13:49", "logout": "still logged in"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.el7.x86_64", "login": "Fri Feb 28 12:56", "logout": "14:54", "duration": "01:58"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Feb 27 16:01", "logout": "crash", "duration": "20:54"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.el7.x86_64", "login": "Thu Feb 27 15:51", "logout": "14:54", "duration": "23:02"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Feb 27 10:50", "logout": "crash", "duration": "05:01"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.el7.x86_64", "login": "Wed Feb 26 20:05", "logout": "14:54", "duration": "1+18:49"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Feb 20 14:42", "logout": "crash", "duration": "6+05:23"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.el7.x86_64", "login": "Thu Feb 20 14:41", "logout": "14:54", "duration": "8+00:12"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Mon Feb 17 17:48", "logout": "crash", "duration": "2+20:52"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.el7.x86_64", "login": "Mon Feb 17 17:48", "logout": "14:54", "duration": "10+21:06"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Feb 13 16:44", "logout": "crash", "duration": "4+01:03"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.el7.x86_64", "login": "Thu Feb 13 16:44", "logout": "14:54", "duration": "14+22:10"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Wed Feb 5 14:23", "logout": "crash", "duration": "8+02:20"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.el7.x86_64", "login": "Wed Feb 5 11:43", "logout": "14:54", "duration": "23+03:11"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Tue Feb 4 14:28", "logout": "crash", "duration": "21:15"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.el7.x86_64", "login": "Tue Feb 4 01:28", "logout": "14:54", "duration": "24+13:26"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Mon Jan 13 17:28", "logout": "crash", "duration": "21+07:59"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.el7.x86_64", "login": "Mon Jan 13 16:16", "logout": "14:54", "duration": "45+22:38"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Mon Dec 16 11:15", "logout": "crash", "duration": "28+05:01"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.el7.x86_64", "login": "Mon Dec 16 11:14", "logout": "14:54", "duration": "74+03:40"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Wed Dec 4 21:41", "logout": "crash", "duration": "11+13:33"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.el7.x86_64", "login": "Wed Dec 4 21:40", "logout": "14:54", "duration": "85+17:13"}, {"user": "kbrazil", "tty": "pts/1", "hostname": null, "login": "Sat Nov 16 14:40", "logout": "14:40", "duration": "00:00"}, {"user": "kbrazil", "tty": "pts/1", "hostname": null, "login": "Sat Nov 16 14:39", "logout": "14:39", "duration": "00:00"}, {"user": "kbrazil", "tty": "pts/0", "hostname": "localhost", "login": "Tue Nov 12 07:19", "logout": "crash", "duration": "22+14:21"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Tue Nov 12 07:18", "logout": "crash", "duration": "22+14:22"}, {"user": "kbrazil", "tty": "pts/0", "hostname": "localhost", "login": "Sun Nov 10 08:21", "logout": "15:22", "duration": "1+07:01"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Sat Nov 9 10:34", "logout": "07:16", "duration": "2+20:42"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.el7.x86_64", "login": "Sat Nov 9 10:34", "logout": "14:54", "duration": "111+04:20"}, {"user": "kbrazil", "tty": "tty1", "hostname": null, "login": "Fri Nov 8 07:49", "logout": "crash", "duration": "1+02:45"}, {"user": "kbrazil", "tty": "pts/0", "hostname": "192.168.71.1", "login": "Fri Nov 8 06:29", "logout": "crash", "duration": "1+04:04"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Nov 8 06:24", "logout": "crash", "duration": "1+04:09"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.el7.x86_64", "login": "Fri Nov 8 06:14", "logout": "14:54", "duration": "112+08:40"}, {"user": "kbrazil", "tty": "tty1", "hostname": null, "login": "Sun Nov 3 12:20", "logout": "crash", "duration": "4+17:54"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Sun Nov 3 11:04", "logout": "11:05", "duration": "00:01"}, {"user": "kbrazil", "tty": "pts/0", "hostname": "192.168.71.1", "login": "Sat Nov 2 19:26", "logout": "crash", "duration": "5+11:47"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Nov 1 15:14", "logout": "11:03", "duration": "1+20:49"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.el7.x86_64", "login": "Fri Nov 1 15:13", "logout": "14:54", "duration": "119+00:41"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Nov 1 11:16", "logout": "11:36", "duration": "00:20"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.el7.x86_64", "login": "Fri Nov 1 06:00", "logout": "11:36", "duration": "05:36"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Tue Oct 29 18:17", "logout": "crash", "duration": "2+11:43"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.el7.x86_64", "login": "Tue Oct 29 18:16", "logout": "11:36", "duration": "2+17:19"}, {"user": "kbrazil", "tty": "pts/0", "hostname": "192.168.71.1", "login": "Sat Oct 26 09:53", "logout": "15:13", "duration": "05:19"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Oct 25 18:22", "logout": "crash", "duration": "3+23:54"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.el7.x86_64", "login": "Fri Oct 25 18:21", "logout": "11:36", "duration": "6+17:14"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Oct 25 17:14", "logout": "18:21", "duration": "01:06"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.el7.x86_64", "login": "Fri Oct 25 17:13", "logout": "11:36", "duration": "6+18:22"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Oct 25 15:43", "logout": "17:13", "duration": "01:29"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.el7.x86_64", "login": "Fri Oct 25 13:29", "logout": "17:13", "duration": "03:44"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Mon Oct 21 13:19", "logout": "19:22", "duration": "2+06:03"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.el7.x86_64", "login": "Mon Oct 21 13:17", "logout": "19:22", "duration": "2+06:05"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Wed Oct 16 03:23", "logout": "crash", "duration": "5+09:54"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Tue Oct 15 16:49", "logout": "03:23", "duration": "10:34"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Tue Oct 15 10:39", "logout": "16:48", "duration": "06:09"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-957.27.2.el7.x86_64", "login": "Tue Oct 15 10:39", "logout": "19:22", "duration": "8+08:43"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Aug 15 16:05", "logout": "16:05", "duration": "00:00"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-957.27.2.el7.x86_64", "login": "Thu Aug 15 16:05", "logout": "16:05", "duration": "00:00"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-957.27.2.el7.x86_64", "login": "Thu Aug 15 16:00", "logout": "16:05", "duration": "00:05"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Aug 15 14:25", "logout": "crash", "duration": "01:35"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-957.27.2.el7.x86_64", "login": "Thu Aug 15 14:24", "logout": "16:05", "duration": "01:41"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Aug 15 11:58", "logout": "crash", "duration": "02:25"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-957.el7.x86_64", "login": "Thu Aug 15 11:58", "logout": "16:05", "duration": "04:07"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Aug 15 11:57", "logout": "11:57", "duration": "00:00"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-957.el7.x86_64", "login": "Thu Aug 15 11:57", "logout": "16:05", "duration": "04:08"}, {"user": "kbrazil", "tty": "pts/0", "hostname": "192.168.71.1", "login": "Thu Aug 15 10:58", "logout": "11:56", "duration": "00:58"}, {"user": "root", "tty": "tty1", "hostname": null, "login": "Thu Aug 15 10:57", "logout": "11:56", "duration": "00:59"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-957.el7.x86_64", "login": "Thu Aug 15 10:57", "logout": "11:56", "duration": "00:59"}] diff --git a/tests/fixtures/centos-7.7/last-w.out b/tests/fixtures/centos-7.7/last-w.out new file mode 100644 index 00000000..ec7223fd --- /dev/null +++ b/tests/fixtures/centos-7.7/last-w.out @@ -0,0 +1,69 @@ +kbrazil ttyS0 Fri Feb 28 13:49 still logged in +reboot system boot 3.10.0-1062.1.2.el7.x86_64 Fri Feb 28 12:56 - 14:54 (01:58) +kbrazil ttyS0 Thu Feb 27 16:01 - crash (20:54) +reboot system boot 3.10.0-1062.1.2.el7.x86_64 Thu Feb 27 15:51 - 14:54 (23:02) +kbrazil ttyS0 Thu Feb 27 10:50 - crash (05:01) +reboot system boot 3.10.0-1062.1.2.el7.x86_64 Wed Feb 26 20:05 - 14:54 (1+18:49) +kbrazil ttyS0 Thu Feb 20 14:42 - crash (6+05:23) +reboot system boot 3.10.0-1062.1.2.el7.x86_64 Thu Feb 20 14:41 - 14:54 (8+00:12) +kbrazil ttyS0 Mon Feb 17 17:48 - crash (2+20:52) +reboot system boot 3.10.0-1062.1.2.el7.x86_64 Mon Feb 17 17:48 - 14:54 (10+21:06) +kbrazil ttyS0 Thu Feb 13 16:44 - crash (4+01:03) +reboot system boot 3.10.0-1062.1.2.el7.x86_64 Thu Feb 13 16:44 - 14:54 (14+22:10) +kbrazil ttyS0 Wed Feb 5 14:23 - crash (8+02:20) +reboot system boot 3.10.0-1062.1.2.el7.x86_64 Wed Feb 5 11:43 - 14:54 (23+03:11) +kbrazil ttyS0 Tue Feb 4 14:28 - crash (21:15) +reboot system boot 3.10.0-1062.1.2.el7.x86_64 Tue Feb 4 01:28 - 14:54 (24+13:26) +kbrazil ttyS0 Mon Jan 13 17:28 - crash (21+07:59) +reboot system boot 3.10.0-1062.1.2.el7.x86_64 Mon Jan 13 16:16 - 14:54 (45+22:38) +kbrazil ttyS0 Mon Dec 16 11:15 - crash (28+05:01) +reboot system boot 3.10.0-1062.1.2.el7.x86_64 Mon Dec 16 11:14 - 14:54 (74+03:40) +kbrazil ttyS0 Wed Dec 4 21:41 - crash (11+13:33) +reboot system boot 3.10.0-1062.1.2.el7.x86_64 Wed Dec 4 21:40 - 14:54 (85+17:13) +kbrazil pts/1 Sat Nov 16 14:40 - 14:40 (00:00) +kbrazil pts/1 Sat Nov 16 14:39 - 14:39 (00:00) +kbrazil pts/0 localhost Tue Nov 12 07:19 - crash (22+14:21) +kbrazil ttyS0 Tue Nov 12 07:18 - crash (22+14:22) +kbrazil pts/0 localhost Sun Nov 10 08:21 - 15:22 (1+07:01) +kbrazil ttyS0 Sat Nov 9 10:34 - 07:16 (2+20:42) +reboot system boot 3.10.0-1062.1.2.el7.x86_64 Sat Nov 9 10:34 - 14:54 (111+04:20) +kbrazil tty1 Fri Nov 8 07:49 - crash (1+02:45) +kbrazil pts/0 192.168.71.1 Fri Nov 8 06:29 - crash (1+04:04) +kbrazil ttyS0 Fri Nov 8 06:24 - crash (1+04:09) +reboot system boot 3.10.0-1062.1.2.el7.x86_64 Fri Nov 8 06:14 - 14:54 (112+08:40) +kbrazil tty1 Sun Nov 3 12:20 - crash (4+17:54) +kbrazil ttyS0 Sun Nov 3 11:04 - 11:05 (00:01) +kbrazil pts/0 192.168.71.1 Sat Nov 2 19:26 - crash (5+11:47) +kbrazil ttyS0 Fri Nov 1 15:14 - 11:03 (1+20:49) +reboot system boot 3.10.0-1062.1.2.el7.x86_64 Fri Nov 1 15:13 - 14:54 (119+00:41) +kbrazil ttyS0 Fri Nov 1 11:16 - 11:36 (00:20) +reboot system boot 3.10.0-1062.1.2.el7.x86_64 Fri Nov 1 06:00 - 11:36 (05:36) +kbrazil ttyS0 Tue Oct 29 18:17 - crash (2+11:43) +reboot system boot 3.10.0-1062.1.2.el7.x86_64 Tue Oct 29 18:16 - 11:36 (2+17:19) +kbrazil pts/0 192.168.71.1 Sat Oct 26 09:53 - 15:13 (05:19) +kbrazil ttyS0 Fri Oct 25 18:22 - crash (3+23:54) +reboot system boot 3.10.0-1062.1.2.el7.x86_64 Fri Oct 25 18:21 - 11:36 (6+17:14) +kbrazil ttyS0 Fri Oct 25 17:14 - 18:21 (01:06) +reboot system boot 3.10.0-1062.1.2.el7.x86_64 Fri Oct 25 17:13 - 11:36 (6+18:22) +kbrazil ttyS0 Fri Oct 25 15:43 - 17:13 (01:29) +reboot system boot 3.10.0-1062.1.2.el7.x86_64 Fri Oct 25 13:29 - 17:13 (03:44) +kbrazil ttyS0 Mon Oct 21 13:19 - 19:22 (2+06:03) +reboot system boot 3.10.0-1062.1.2.el7.x86_64 Mon Oct 21 13:17 - 19:22 (2+06:05) +kbrazil ttyS0 Wed Oct 16 03:23 - crash (5+09:54) +kbrazil ttyS0 Tue Oct 15 16:49 - 03:23 (10:34) +kbrazil ttyS0 Tue Oct 15 10:39 - 16:48 (06:09) +reboot system boot 3.10.0-957.27.2.el7.x86_64 Tue Oct 15 10:39 - 19:22 (8+08:43) +kbrazil ttyS0 Thu Aug 15 16:05 - 16:05 (00:00) +reboot system boot 3.10.0-957.27.2.el7.x86_64 Thu Aug 15 16:05 - 16:05 (00:00) +reboot system boot 3.10.0-957.27.2.el7.x86_64 Thu Aug 15 16:00 - 16:05 (00:05) +kbrazil ttyS0 Thu Aug 15 14:25 - crash (01:35) +reboot system boot 3.10.0-957.27.2.el7.x86_64 Thu Aug 15 14:24 - 16:05 (01:41) +kbrazil ttyS0 Thu Aug 15 11:58 - crash (02:25) +reboot system boot 3.10.0-957.el7.x86_64 Thu Aug 15 11:58 - 16:05 (04:07) +kbrazil ttyS0 Thu Aug 15 11:57 - 11:57 (00:00) +reboot system boot 3.10.0-957.el7.x86_64 Thu Aug 15 11:57 - 16:05 (04:08) +kbrazil pts/0 192.168.71.1 Thu Aug 15 10:58 - 11:56 (00:58) +root tty1 Thu Aug 15 10:57 - 11:56 (00:59) +reboot system boot 3.10.0-957.el7.x86_64 Thu Aug 15 10:57 - 11:56 (00:59) + +wtmp begins Thu Aug 15 10:57:06 2019 diff --git a/tests/fixtures/centos-7.7/last.json b/tests/fixtures/centos-7.7/last.json new file mode 100644 index 00000000..05ae4ec0 --- /dev/null +++ b/tests/fixtures/centos-7.7/last.json @@ -0,0 +1 @@ +[{"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Feb 28 13:49", "logout": "still logged in"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.", "login": "Fri Feb 28 12:56", "logout": "14:52", "duration": "01:56"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Feb 27 16:01", "logout": "crash", "duration": "20:54"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.", "login": "Thu Feb 27 15:51", "logout": "14:52", "duration": "23:01"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Feb 27 10:50", "logout": "crash", "duration": "05:01"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.", "login": "Wed Feb 26 20:05", "logout": "14:52", "duration": "1+18:47"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Feb 20 14:42", "logout": "crash", "duration": "6+05:23"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.", "login": "Thu Feb 20 14:41", "logout": "14:52", "duration": "8+00:11"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Mon Feb 17 17:48", "logout": "crash", "duration": "2+20:52"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.", "login": "Mon Feb 17 17:48", "logout": "14:52", "duration": "10+21:04"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Feb 13 16:44", "logout": "crash", "duration": "4+01:03"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.", "login": "Thu Feb 13 16:44", "logout": "14:52", "duration": "14+22:08"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Wed Feb 5 14:23", "logout": "crash", "duration": "8+02:20"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.", "login": "Wed Feb 5 11:43", "logout": "14:52", "duration": "23+03:09"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Tue Feb 4 14:28", "logout": "crash", "duration": "21:15"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.", "login": "Tue Feb 4 01:28", "logout": "14:52", "duration": "24+13:24"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Mon Jan 13 17:28", "logout": "crash", "duration": "21+07:59"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.", "login": "Mon Jan 13 16:16", "logout": "14:52", "duration": "45+22:36"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Mon Dec 16 11:15", "logout": "crash", "duration": "28+05:01"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.", "login": "Mon Dec 16 11:14", "logout": "14:52", "duration": "74+03:38"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Wed Dec 4 21:41", "logout": "crash", "duration": "11+13:33"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.", "login": "Wed Dec 4 21:40", "logout": "14:52", "duration": "85+17:12"}, {"user": "kbrazil", "tty": "pts/1", "hostname": null, "login": "Sat Nov 16 14:40", "logout": "14:40", "duration": "00:00"}, {"user": "kbrazil", "tty": "pts/1", "hostname": null, "login": "Sat Nov 16 14:39", "logout": "14:39", "duration": "00:00"}, {"user": "kbrazil", "tty": "pts/0", "hostname": "localhost", "login": "Tue Nov 12 07:19", "logout": "crash", "duration": "22+14:21"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Tue Nov 12 07:18", "logout": "crash", "duration": "22+14:22"}, {"user": "kbrazil", "tty": "pts/0", "hostname": "localhost", "login": "Sun Nov 10 08:21", "logout": "15:22", "duration": "1+07:01"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Sat Nov 9 10:34", "logout": "07:16", "duration": "2+20:42"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.", "login": "Sat Nov 9 10:34", "logout": "14:52", "duration": "111+04:18"}, {"user": "kbrazil", "tty": "tty1", "hostname": null, "login": "Fri Nov 8 07:49", "logout": "crash", "duration": "1+02:45"}, {"user": "kbrazil", "tty": "pts/0", "hostname": "192.168.71.1", "login": "Fri Nov 8 06:29", "logout": "crash", "duration": "1+04:04"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Nov 8 06:24", "logout": "crash", "duration": "1+04:09"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.", "login": "Fri Nov 8 06:14", "logout": "14:52", "duration": "112+08:38"}, {"user": "kbrazil", "tty": "tty1", "hostname": null, "login": "Sun Nov 3 12:20", "logout": "crash", "duration": "4+17:54"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Sun Nov 3 11:04", "logout": "11:05", "duration": "00:01"}, {"user": "kbrazil", "tty": "pts/0", "hostname": "192.168.71.1", "login": "Sat Nov 2 19:26", "logout": "crash", "duration": "5+11:47"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Nov 1 15:14", "logout": "11:03", "duration": "1+20:49"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.", "login": "Fri Nov 1 15:13", "logout": "14:52", "duration": "119+00:39"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Nov 1 11:16", "logout": "11:36", "duration": "00:20"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.", "login": "Fri Nov 1 06:00", "logout": "11:36", "duration": "05:36"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Tue Oct 29 18:17", "logout": "crash", "duration": "2+11:43"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.", "login": "Tue Oct 29 18:16", "logout": "11:36", "duration": "2+17:19"}, {"user": "kbrazil", "tty": "pts/0", "hostname": "192.168.71.1", "login": "Sat Oct 26 09:53", "logout": "15:13", "duration": "05:19"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Oct 25 18:22", "logout": "crash", "duration": "3+23:54"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.", "login": "Fri Oct 25 18:21", "logout": "11:36", "duration": "6+17:14"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Oct 25 17:14", "logout": "18:21", "duration": "01:06"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.", "login": "Fri Oct 25 17:13", "logout": "11:36", "duration": "6+18:22"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Oct 25 15:43", "logout": "17:13", "duration": "01:29"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.", "login": "Fri Oct 25 13:29", "logout": "17:13", "duration": "03:44"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Mon Oct 21 13:19", "logout": "19:22", "duration": "2+06:03"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-1062.1.2.", "login": "Mon Oct 21 13:17", "logout": "19:22", "duration": "2+06:05"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Wed Oct 16 03:23", "logout": "crash", "duration": "5+09:54"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Tue Oct 15 16:49", "logout": "03:23", "duration": "10:34"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Tue Oct 15 10:39", "logout": "16:48", "duration": "06:09"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-957.27.2.", "login": "Tue Oct 15 10:39", "logout": "19:22", "duration": "8+08:43"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Aug 15 16:05", "logout": "16:05", "duration": "00:00"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-957.27.2.", "login": "Thu Aug 15 16:05", "logout": "16:05", "duration": "00:00"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-957.27.2.", "login": "Thu Aug 15 16:00", "logout": "16:05", "duration": "00:05"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Aug 15 14:25", "logout": "crash", "duration": "01:35"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-957.27.2.", "login": "Thu Aug 15 14:24", "logout": "16:05", "duration": "01:41"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Aug 15 11:58", "logout": "crash", "duration": "02:25"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-957.el7.x", "login": "Thu Aug 15 11:58", "logout": "16:05", "duration": "04:07"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Aug 15 11:57", "logout": "11:57", "duration": "00:00"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-957.el7.x", "login": "Thu Aug 15 11:57", "logout": "16:05", "duration": "04:08"}, {"user": "kbrazil", "tty": "pts/0", "hostname": "192.168.71.1", "login": "Thu Aug 15 10:58", "logout": "11:56", "duration": "00:58"}, {"user": "root", "tty": "tty1", "hostname": null, "login": "Thu Aug 15 10:57", "logout": "11:56", "duration": "00:59"}, {"user": "reboot", "tty": "system boot", "hostname": "3.10.0-957.el7.x", "login": "Thu Aug 15 10:57", "logout": "11:56", "duration": "00:59"}] diff --git a/tests/fixtures/centos-7.7/last.out b/tests/fixtures/centos-7.7/last.out new file mode 100644 index 00000000..82efcdc7 --- /dev/null +++ b/tests/fixtures/centos-7.7/last.out @@ -0,0 +1,69 @@ +kbrazil ttyS0 Fri Feb 28 13:49 still logged in +reboot system boot 3.10.0-1062.1.2. Fri Feb 28 12:56 - 14:52 (01:56) +kbrazil ttyS0 Thu Feb 27 16:01 - crash (20:54) +reboot system boot 3.10.0-1062.1.2. Thu Feb 27 15:51 - 14:52 (23:01) +kbrazil ttyS0 Thu Feb 27 10:50 - crash (05:01) +reboot system boot 3.10.0-1062.1.2. Wed Feb 26 20:05 - 14:52 (1+18:47) +kbrazil ttyS0 Thu Feb 20 14:42 - crash (6+05:23) +reboot system boot 3.10.0-1062.1.2. Thu Feb 20 14:41 - 14:52 (8+00:11) +kbrazil ttyS0 Mon Feb 17 17:48 - crash (2+20:52) +reboot system boot 3.10.0-1062.1.2. Mon Feb 17 17:48 - 14:52 (10+21:04) +kbrazil ttyS0 Thu Feb 13 16:44 - crash (4+01:03) +reboot system boot 3.10.0-1062.1.2. Thu Feb 13 16:44 - 14:52 (14+22:08) +kbrazil ttyS0 Wed Feb 5 14:23 - crash (8+02:20) +reboot system boot 3.10.0-1062.1.2. Wed Feb 5 11:43 - 14:52 (23+03:09) +kbrazil ttyS0 Tue Feb 4 14:28 - crash (21:15) +reboot system boot 3.10.0-1062.1.2. Tue Feb 4 01:28 - 14:52 (24+13:24) +kbrazil ttyS0 Mon Jan 13 17:28 - crash (21+07:59) +reboot system boot 3.10.0-1062.1.2. Mon Jan 13 16:16 - 14:52 (45+22:36) +kbrazil ttyS0 Mon Dec 16 11:15 - crash (28+05:01) +reboot system boot 3.10.0-1062.1.2. Mon Dec 16 11:14 - 14:52 (74+03:38) +kbrazil ttyS0 Wed Dec 4 21:41 - crash (11+13:33) +reboot system boot 3.10.0-1062.1.2. Wed Dec 4 21:40 - 14:52 (85+17:12) +kbrazil pts/1 Sat Nov 16 14:40 - 14:40 (00:00) +kbrazil pts/1 Sat Nov 16 14:39 - 14:39 (00:00) +kbrazil pts/0 localhost Tue Nov 12 07:19 - crash (22+14:21) +kbrazil ttyS0 Tue Nov 12 07:18 - crash (22+14:22) +kbrazil pts/0 localhost Sun Nov 10 08:21 - 15:22 (1+07:01) +kbrazil ttyS0 Sat Nov 9 10:34 - 07:16 (2+20:42) +reboot system boot 3.10.0-1062.1.2. Sat Nov 9 10:34 - 14:52 (111+04:18) +kbrazil tty1 Fri Nov 8 07:49 - crash (1+02:45) +kbrazil pts/0 192.168.71.1 Fri Nov 8 06:29 - crash (1+04:04) +kbrazil ttyS0 Fri Nov 8 06:24 - crash (1+04:09) +reboot system boot 3.10.0-1062.1.2. Fri Nov 8 06:14 - 14:52 (112+08:38) +kbrazil tty1 Sun Nov 3 12:20 - crash (4+17:54) +kbrazil ttyS0 Sun Nov 3 11:04 - 11:05 (00:01) +kbrazil pts/0 192.168.71.1 Sat Nov 2 19:26 - crash (5+11:47) +kbrazil ttyS0 Fri Nov 1 15:14 - 11:03 (1+20:49) +reboot system boot 3.10.0-1062.1.2. Fri Nov 1 15:13 - 14:52 (119+00:39) +kbrazil ttyS0 Fri Nov 1 11:16 - 11:36 (00:20) +reboot system boot 3.10.0-1062.1.2. Fri Nov 1 06:00 - 11:36 (05:36) +kbrazil ttyS0 Tue Oct 29 18:17 - crash (2+11:43) +reboot system boot 3.10.0-1062.1.2. Tue Oct 29 18:16 - 11:36 (2+17:19) +kbrazil pts/0 192.168.71.1 Sat Oct 26 09:53 - 15:13 (05:19) +kbrazil ttyS0 Fri Oct 25 18:22 - crash (3+23:54) +reboot system boot 3.10.0-1062.1.2. Fri Oct 25 18:21 - 11:36 (6+17:14) +kbrazil ttyS0 Fri Oct 25 17:14 - 18:21 (01:06) +reboot system boot 3.10.0-1062.1.2. Fri Oct 25 17:13 - 11:36 (6+18:22) +kbrazil ttyS0 Fri Oct 25 15:43 - 17:13 (01:29) +reboot system boot 3.10.0-1062.1.2. Fri Oct 25 13:29 - 17:13 (03:44) +kbrazil ttyS0 Mon Oct 21 13:19 - 19:22 (2+06:03) +reboot system boot 3.10.0-1062.1.2. Mon Oct 21 13:17 - 19:22 (2+06:05) +kbrazil ttyS0 Wed Oct 16 03:23 - crash (5+09:54) +kbrazil ttyS0 Tue Oct 15 16:49 - 03:23 (10:34) +kbrazil ttyS0 Tue Oct 15 10:39 - 16:48 (06:09) +reboot system boot 3.10.0-957.27.2. Tue Oct 15 10:39 - 19:22 (8+08:43) +kbrazil ttyS0 Thu Aug 15 16:05 - 16:05 (00:00) +reboot system boot 3.10.0-957.27.2. Thu Aug 15 16:05 - 16:05 (00:00) +reboot system boot 3.10.0-957.27.2. Thu Aug 15 16:00 - 16:05 (00:05) +kbrazil ttyS0 Thu Aug 15 14:25 - crash (01:35) +reboot system boot 3.10.0-957.27.2. Thu Aug 15 14:24 - 16:05 (01:41) +kbrazil ttyS0 Thu Aug 15 11:58 - crash (02:25) +reboot system boot 3.10.0-957.el7.x Thu Aug 15 11:58 - 16:05 (04:07) +kbrazil ttyS0 Thu Aug 15 11:57 - 11:57 (00:00) +reboot system boot 3.10.0-957.el7.x Thu Aug 15 11:57 - 16:05 (04:08) +kbrazil pts/0 192.168.71.1 Thu Aug 15 10:58 - 11:56 (00:58) +root tty1 Thu Aug 15 10:57 - 11:56 (00:59) +reboot system boot 3.10.0-957.el7.x Thu Aug 15 10:57 - 11:56 (00:59) + +wtmp begins Thu Aug 15 10:57:06 2019 diff --git a/tests/fixtures/centos-7.7/lastb.json b/tests/fixtures/centos-7.7/lastb.json new file mode 100644 index 00000000..e7e6844b --- /dev/null +++ b/tests/fixtures/centos-7.7/lastb.json @@ -0,0 +1 @@ +[{"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Feb 28 13:49", "logout": "13:49", "duration": "00:00"}, {"user": "kbrazil", "tty": "ssh:notty", "hostname": "192.168.71.1", "login": "Thu Feb 27 10:13", "logout": "10:13", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Feb 20 14:41", "logout": "14:41", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Mon Feb 17 17:48", "logout": "17:48", "duration": "00:00"}] diff --git a/tests/fixtures/centos-7.7/lastb.out b/tests/fixtures/centos-7.7/lastb.out new file mode 100644 index 00000000..a08d5cf2 --- /dev/null +++ b/tests/fixtures/centos-7.7/lastb.out @@ -0,0 +1,6 @@ +kbrazil ttyS0 Fri Feb 28 13:49 - 13:49 (00:00) +kbrazil ssh:notty 192.168.71.1 Thu Feb 27 10:13 - 10:13 (00:00) +kbrazil ttyS0 Thu Feb 20 14:41 - 14:41 (00:00) +kbrazil ttyS0 Mon Feb 17 17:48 - 17:48 (00:00) + +btmp begins Mon Feb 17 17:48:53 2020 diff --git a/tests/fixtures/create_fixtures.sh b/tests/fixtures/create_fixtures.sh index 32990148..f736d894 100644 --- a/tests/fixtures/create_fixtures.sh +++ b/tests/fixtures/create_fixtures.sh @@ -94,3 +94,7 @@ blkid /dev/sda2 > blkid-sda2.out sudo blkid -ip /dev/sda2 /dev/sda1 > blkid-ip-multi.out sudo blkid -o udev -ip /dev/sr0 > blkid-ip-udev.out sudo blkid -o udev -ip /dev/sda2 /dev/sda1 > blkid-ip-udev-multi.out + +last > last.out +last -w | cat > last-w.out +sudo lastb > lastb.out diff --git a/tests/fixtures/osx-10.14.6/last.json b/tests/fixtures/osx-10.14.6/last.json new file mode 100644 index 00000000..ed198ff1 --- /dev/null +++ b/tests/fixtures/osx-10.14.6/last.json @@ -0,0 +1 @@ +[{"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Fri Feb 28 14:45", "logout": "still logged in"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Fri Feb 28 08:59", "logout": "still logged in"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Thu Feb 27 14:31", "logout": "14:31", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Thu Feb 27 10:38", "logout": "10:38", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Thu Feb 27 10:18", "logout": "10:18", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Fri Feb 21 08:47", "logout": "08:47", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Thu Feb 20 14:53", "logout": "14:53", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Thu Feb 13 16:44", "logout": "16:44", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Tue Feb 11 21:25", "logout": "still logged in"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Mon Feb 10 15:54", "logout": "15:54", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Mon Feb 10 08:52", "logout": "08:52", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Fri Feb 7 23:32", "logout": "23:32", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Fri Feb 7 23:32", "logout": "23:32", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Fri Feb 7 23:32", "logout": "still logged in"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Fri Feb 7 23:31"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Fri Feb 7 23:26"}, {"user": "root", "tty": "console", "hostname": null, "login": "Fri Feb 7 23:25", "logout": "shutdown", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Fri Feb 7 11:19", "logout": "11:19", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Fri Feb 7 11:19", "logout": "11:19", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Fri Feb 7 07:51", "logout": "23:25", "duration": "15:34"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Fri Feb 7 07:51"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Fri Feb 7 07:50"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Wed Feb 5 11:42", "logout": "11:42", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Tue Feb 4 14:23", "logout": "14:23", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Mon Feb 3 15:22", "logout": "15:22", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Mon Feb 3 08:58", "logout": "08:58", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Wed Jan 29 11:10", "logout": "11:10", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Tue Jan 28 09:00", "logout": "09:00", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Mon Jan 27 17:15", "logout": "17:15", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Sun Jan 26 19:13", "logout": "19:13", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Fri Jan 24 14:03", "logout": "14:03", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Wed Jan 22 09:17", "logout": "09:17", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Tue Jan 21 11:56", "logout": "11:56", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Fri Jan 17 12:49", "logout": "12:49", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Fri Jan 17 11:32", "logout": "11:32", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Thu Jan 16 14:51", "logout": "14:51", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Wed Jan 15 17:45", "logout": "17:45", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Tue Jan 14 13:30", "logout": "13:30", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Tue Jan 14 13:17", "logout": "13:17", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys004", "hostname": null, "login": "Tue Jan 14 11:55", "logout": "11:55", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Mon Jan 13 17:27", "logout": "17:27", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Mon Jan 13 16:11", "logout": "16:11", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Mon Jan 13 13:51", "logout": "13:51", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Fri Jan 10 13:21", "logout": "13:21", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Thu Jan 9 12:38", "logout": "12:38", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Wed Jan 8 06:08", "logout": "06:08", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Tue Jan 7 14:22", "logout": "14:22", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Tue Jan 7 08:57", "logout": "08:57", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Fri Jan 3 13:24", "logout": "13:24", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Thu Jan 2 14:05", "logout": "14:05", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Thu Jan 2 10:07", "logout": "10:07", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys004", "hostname": null, "login": "Mon Dec 16 14:17", "logout": "14:17", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Mon Dec 16 11:14", "logout": "11:14", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Thu Dec 12 12:10", "logout": "12:10", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Thu Dec 12 12:10", "logout": "07:50", "duration": "56+19:39"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Thu Dec 12 12:09"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Thu Dec 12 12:09"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Thu Dec 12 00:15", "logout": "00:15", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Thu Dec 12 00:15", "logout": "12:09", "duration": "11:54"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Thu Dec 12 00:14"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Thu Dec 12 00:08"}, {"user": "root", "tty": "console", "hostname": null, "login": "Thu Dec 12 00:08", "logout": "shutdown", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Wed Dec 11 16:17", "logout": "16:17", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Wed Dec 11 16:16", "logout": "16:16", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Fri Dec 6 10:41", "logout": "10:41", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Fri Dec 6 07:32", "logout": "07:32", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Mon Dec 2 23:44", "logout": "23:44", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Mon Dec 2 23:39", "logout": "23:39", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Mon Dec 2 23:07", "logout": "23:07", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Mon Dec 2 16:23", "logout": "16:23", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Mon Dec 2 16:22", "logout": "16:22", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Mon Dec 2 15:50", "logout": "15:50", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Mon Dec 2 13:50", "logout": "13:50", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Mon Dec 2 12:47", "logout": "12:47", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Mon Dec 2 12:06", "logout": "12:06", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys004", "hostname": null, "login": "Wed Nov 27 09:19", "logout": "09:19", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys005", "hostname": null, "login": "Mon Nov 25 08:08", "logout": "08:08", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys004", "hostname": null, "login": "Thu Nov 21 17:23", "logout": "17:23", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Thu Nov 21 10:28", "logout": "10:28", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Wed Nov 20 09:35", "logout": "09:35", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Mon Nov 11 12:49", "logout": "12:49", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Sun Nov 10 13:52", "logout": "13:52", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Sat Nov 9 10:34", "logout": "10:34", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Fri Nov 8 15:37", "logout": "15:37", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Fri Nov 8 14:01", "logout": "14:01", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Fri Nov 8 10:57", "logout": "10:57", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Fri Nov 8 06:29", "logout": "06:29", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Fri Nov 8 06:22", "logout": "06:22", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Nov 7 19:00", "logout": "19:00", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Wed Nov 6 15:19", "logout": "15:19", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys005", "hostname": null, "login": "Mon Nov 4 07:54", "logout": "07:54", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Fri Nov 1 15:13", "logout": "15:13", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Fri Nov 1 15:13", "logout": "15:13", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Fri Nov 1 11:55", "logout": "11:55", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Fri Nov 1 11:16", "logout": "11:16", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Fri Nov 1 06:31", "logout": "06:31", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Oct 31 14:13", "logout": "14:13", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Oct 31 11:57", "logout": "11:57", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Thu Oct 31 09:37", "logout": "00:08", "duration": "41+15:30"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Thu Oct 31 09:37"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Thu Oct 31 09:30"}, {"user": "root", "tty": "console", "hostname": null, "login": "Thu Oct 31 09:30", "logout": "shutdown", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys006", "hostname": null, "login": "Thu Oct 31 07:35", "logout": "07:35", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys004", "hostname": null, "login": "Wed Oct 30 13:25", "logout": "13:25", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Tue Oct 29 18:16", "logout": "18:16", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys004", "hostname": null, "login": "Tue Oct 29 08:04", "logout": "08:04", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Mon Oct 28 21:58", "logout": "21:58", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Mon Oct 28 21:58", "logout": "21:58", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Mon Oct 28 21:58", "logout": "21:58", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Mon Oct 28 21:58", "logout": "09:30", "duration": "2+11:31"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Mon Oct 28 21:57"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Mon Oct 28 21:57"}, {"user": "kbrazil", "tty": "ttys007", "hostname": null, "login": "Mon Oct 28 12:13", "logout": "12:13", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys006", "hostname": null, "login": "Thu Oct 24 15:57", "logout": "15:57", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys006", "hostname": null, "login": "Tue Oct 22 17:06", "logout": "17:06", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Mon Oct 21 12:08", "logout": "12:08", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Mon Oct 21 12:08", "logout": "12:08", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Mon Oct 21 12:08", "logout": "12:08", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Mon Oct 21 12:04", "logout": "21:57", "duration": "7+09:52"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Mon Oct 21 12:03"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Mon Oct 21 12:00"}, {"user": "root", "tty": "console", "hostname": null, "login": "Mon Oct 21 11:59", "logout": "shutdown", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Thu Oct 17 17:08", "logout": "17:08", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys004", "hostname": null, "login": "Tue Oct 15 11:36", "logout": "11:36", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Tue Oct 15 11:10", "logout": "11:10", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Fri Oct 4 15:07", "logout": "15:07", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Oct 3 11:45", "logout": "11:45", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Oct 3 07:33", "logout": "07:33", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Wed Oct 2 17:03", "logout": "17:03", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Wed Oct 2 15:39", "logout": "15:39", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Wed Oct 2 14:18", "logout": "14:18", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Wed Oct 2 12:47", "logout": "11:59", "duration": "18+23:12"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Wed Oct 2 12:47"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Wed Oct 2 12:46"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Wed Oct 2 12:15", "logout": "12:15", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Wed Oct 2 12:06", "logout": "12:06", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Wed Oct 2 11:54", "logout": "11:54", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Mon Sep 30 16:29", "logout": "16:29", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Fri Sep 27 15:55", "logout": "15:55", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Fri Sep 27 15:51", "logout": "15:51", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Fri Sep 27 15:18", "logout": "12:46", "duration": "4+21:28"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Fri Sep 27 15:17"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Fri Sep 27 15:15"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Fri Sep 27 06:44", "logout": "06:44", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Sep 26 15:22", "logout": "15:22", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Wed Sep 25 15:09", "logout": "15:09", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Wed Sep 25 08:16", "logout": "08:16", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Tue Sep 24 16:42", "logout": "16:42", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Tue Sep 24 14:20", "logout": "14:20", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Tue Sep 24 10:03", "logout": "10:03", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Wed Sep 18 12:17", "logout": "12:17", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Wed Sep 18 12:14", "logout": "12:14", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Wed Sep 18 12:09", "logout": "12:09", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Wed Sep 18 12:09", "logout": "12:09", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys004", "hostname": null, "login": "Wed Sep 18 11:25", "logout": "11:25", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Wed Sep 18 11:13", "logout": "11:13", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Tue Sep 17 16:31", "logout": "16:31", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Tue Sep 17 15:53", "logout": "15:53", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Tue Sep 17 14:41", "logout": "14:41", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Tue Sep 17 14:34", "logout": "14:34", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Tue Sep 17 13:54", "logout": "15:15", "duration": "10+01:20"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Tue Sep 17 13:54"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Tue Sep 17 13:53"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Tue Sep 17 07:03", "logout": "07:03", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Mon Sep 16 08:50", "logout": "08:50", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Fri Sep 13 02:36", "logout": "02:36", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Fri Sep 13 02:10", "logout": "02:10", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Sep 12 05:15", "logout": "05:15", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Tue Sep 10 04:42", "logout": "04:42", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Fri Sep 6 10:15", "logout": "10:15", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Fri Sep 6 09:20", "logout": "09:20", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Wed Sep 4 14:19", "logout": "14:19", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Wed Sep 4 13:54", "logout": "13:54", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Wed Sep 4 09:10", "logout": "09:10", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Tue Sep 3 14:59", "logout": "14:59", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Tue Sep 3 10:56", "logout": "10:56", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Tue Sep 3 08:32", "logout": "08:32", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Thu Aug 29 17:21", "logout": "17:21", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Aug 29 17:13", "logout": "17:13", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Aug 29 14:48", "logout": "14:48", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Thu Aug 29 14:36", "logout": "14:36", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Thu Aug 29 14:35", "logout": "14:35", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Aug 29 14:28", "logout": "14:28", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Thu Aug 29 12:47", "logout": "12:47", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Thu Aug 29 09:47", "logout": "09:47", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Thu Aug 29 09:41", "logout": "09:41", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Aug 29 09:32", "logout": "09:32", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Aug 29 09:30", "logout": "09:30", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Wed Aug 28 14:29", "logout": "14:29", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Tue Aug 27 21:22", "logout": "13:53", "duration": "20+16:31"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Tue Aug 27 21:21"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Tue Aug 27 21:17"}, {"user": "root", "tty": "console", "hostname": null, "login": "Tue Aug 27 21:17", "logout": "shutdown", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Mon Aug 26 15:09", "logout": "15:09", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Mon Aug 26 07:54", "logout": "07:54", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Fri Aug 23 16:22", "logout": "16:22", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Fri Aug 23 15:21", "logout": "15:21", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Fri Aug 23 15:19", "logout": "15:19", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Fri Aug 23 06:46", "logout": "06:46", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Thu Aug 22 17:48", "logout": "17:48", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Thu Aug 22 14:21", "logout": "14:21", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Thu Aug 22 14:21", "logout": "14:21", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Aug 22 14:21", "logout": "14:21", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Thu Aug 22 14:21", "logout": "14:21", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Thu Aug 22 14:20", "logout": "21:17", "duration": "5+06:56"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Thu Aug 22 14:20"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Thu Aug 22 14:17"}, {"user": "kbrazil", "tty": "ttys004", "hostname": null, "login": "Wed Aug 21 15:24", "logout": "15:24", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Tue Aug 20 19:52", "logout": "19:52", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Tue Aug 20 16:32", "logout": "16:32", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Mon Aug 19 17:51", "logout": "17:51", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Mon Aug 19 14:42", "logout": "14:42", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Mon Aug 19 14:02", "logout": "14:02", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Sat Aug 17 10:02", "logout": "10:02", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Fri Aug 16 18:20", "logout": "18:20", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Fri Aug 16 06:46", "logout": "06:46", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Thu Aug 15 17:07", "logout": "17:07", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Thu Aug 15 17:00", "logout": "17:00", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Thu Aug 15 16:01", "logout": "16:01", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Thu Aug 15 15:55", "logout": "15:55", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys005", "hostname": null, "login": "Thu Aug 15 14:48", "logout": "14:48", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys005", "hostname": null, "login": "Thu Aug 15 14:45", "logout": "14:45", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Thu Aug 15 14:35", "logout": "14:35", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Thu Aug 15 14:24", "logout": "14:24", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys005", "hostname": null, "login": "Thu Aug 15 10:57", "logout": "10:57", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Thu Aug 15 10:48", "logout": "10:48", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Thu Aug 15 10:43", "logout": "10:43", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Thu Aug 15 10:39", "logout": "10:39", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Thu Aug 15 10:39", "logout": "14:17", "duration": "7+03:37"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Thu Aug 15 10:39"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Thu Aug 15 10:38"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Thu Aug 15 08:56", "logout": "08:56", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys004", "hostname": null, "login": "Thu Aug 15 08:09", "logout": "08:09", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Thu Aug 15 08:08", "logout": "08:08", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Wed Aug 14 18:12", "logout": "18:12", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Wed Aug 14 15:08", "logout": "15:08", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys004", "hostname": null, "login": "Wed Aug 14 09:11", "logout": "09:11", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Wed Aug 14 09:03", "logout": "09:03", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Tue Aug 13 14:47", "logout": "14:47", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Tue Aug 13 11:14", "logout": "11:14", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Tue Aug 13 11:14", "logout": "11:14", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Tue Aug 13 10:54", "logout": "10:54", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Tue Aug 13 10:43", "logout": "10:43", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Tue Aug 13 10:29", "logout": "10:29", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Tue Aug 13 09:27", "logout": "09:27", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Tue Aug 13 05:40", "logout": "05:40", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Mon Aug 12 14:11", "logout": "14:11", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Mon Aug 12 13:54", "logout": "13:54", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Mon Aug 12 13:54", "logout": "13:54", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Mon Aug 12 13:54", "logout": "13:54", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Mon Aug 12 13:54", "logout": "10:38", "duration": "2+20:44"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Mon Aug 12 13:53"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Mon Aug 12 13:52"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Mon Aug 12 13:37", "logout": "13:37", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys004", "hostname": null, "login": "Thu Aug 8 09:15", "logout": "09:15", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Thu Aug 8 09:14", "logout": "09:14", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Thu Aug 8 09:03", "logout": "09:03", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Thu Aug 8 07:17", "logout": "07:17", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Mon Aug 5 10:57", "logout": "10:57", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Mon Aug 5 08:34", "logout": "08:34", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Mon Aug 5 08:29", "logout": "13:52", "duration": "7+05:23"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Mon Aug 5 08:28"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Mon Aug 5 08:25"}, {"user": "root", "tty": "console", "hostname": null, "login": "Mon Aug 5 08:24", "logout": "shutdown", "duration": "00:01"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Sat Aug 3 07:20", "logout": "07:20", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Sat Aug 3 06:54", "logout": "06:54", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys005", "hostname": null, "login": "Fri Aug 2 10:21", "logout": "10:21", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys004", "hostname": null, "login": "Fri Aug 2 10:21", "logout": "10:21", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Fri Aug 2 10:21", "logout": "10:21", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Fri Aug 2 10:21", "logout": "10:21", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Fri Aug 2 10:21", "logout": "10:21", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Fri Aug 2 07:00", "logout": "08:24", "duration": "3+01:23"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Fri Aug 2 07:00"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Fri Aug 2 06:59"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Fri Aug 2 06:06", "logout": "06:59", "duration": "00:53"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Fri Aug 2 06:06"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Fri Aug 2 06:05"}, {"user": "kbrazil", "tty": "ttys010", "hostname": null, "login": "Wed Jul 31 08:44", "logout": "08:44", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys010", "hostname": null, "login": "Tue Jul 30 14:48", "logout": "14:48", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys008", "hostname": null, "login": "Tue Jul 30 08:23", "logout": "08:23", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys006", "hostname": null, "login": "Tue Jul 30 07:24", "logout": "07:24", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys006", "hostname": null, "login": "Mon Jul 29 13:32", "logout": "13:32", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Mon Jul 29 12:50", "logout": "12:50", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Mon Jul 29 12:46", "logout": "12:46", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Sun Jul 28 14:12", "logout": "14:12", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Sun Jul 28 14:07", "logout": "06:04", "duration": "4+15:57"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Sun Jul 28 14:07"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Sun Jul 28 14:06"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Sun Jul 28 13:17", "logout": "13:17", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Sun Jul 28 13:17", "logout": "13:17", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Sun Jul 28 13:16", "logout": "13:16", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Sun Jul 28 13:16", "logout": "13:16", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Sun Jul 28 13:16", "logout": "13:16", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Sun Jul 28 13:16", "logout": "14:06", "duration": "00:50"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Sun Jul 28 13:16"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Sun Jul 28 13:15"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Sun Jul 28 13:12", "logout": "13:12", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Sun Jul 28 13:10", "logout": "13:10", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys005", "hostname": null, "login": "Sun Jul 28 12:38", "logout": "12:38", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys005", "hostname": null, "login": "Sun Jul 28 12:01", "logout": "12:01", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys005", "hostname": null, "login": "Sun Jul 28 08:17", "logout": "08:17", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys005", "hostname": null, "login": "Sat Jul 27 18:36", "logout": "18:36", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Sat Jul 27 18:25", "logout": "18:25", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Sat Jul 27 18:19", "logout": "18:19", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Fri Jul 26 10:58", "logout": "10:58", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Fri Jul 26 08:16", "logout": "08:16", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Thu Jul 25 18:38", "logout": "13:15", "duration": "2+18:36"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Thu Jul 25 18:38"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Thu Jul 25 18:37"}, {"user": "kbrazil", "tty": "ttys004", "hostname": null, "login": "Thu Jul 25 10:57", "logout": "10:57", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys004", "hostname": null, "login": "Thu Jul 25 08:33", "logout": "08:33", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Wed Jul 24 14:39", "logout": "14:39", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys005", "hostname": null, "login": "Wed Jul 24 12:13", "logout": "12:13", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys004", "hostname": null, "login": "Wed Jul 24 10:51", "logout": "10:51", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Wed Jul 24 10:17", "logout": "10:17", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Wed Jul 24 02:54", "logout": "02:54", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Tue Jul 23 20:16", "logout": "18:37", "duration": "1+22:21"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Tue Jul 23 20:15"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Tue Jul 23 20:09"}, {"user": "root", "tty": "console", "hostname": null, "login": "Tue Jul 23 20:07", "logout": "shutdown", "duration": "00:01"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Tue Jul 23 07:03", "logout": "07:03", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys007", "hostname": null, "login": "Tue Jul 16 14:57", "logout": "14:57", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys007", "hostname": null, "login": "Mon Jul 15 14:45", "logout": "14:45", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys005", "hostname": null, "login": "Mon Jul 15 14:38", "logout": "14:38", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys004", "hostname": null, "login": "Mon Jul 15 12:12", "logout": "12:12", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Fri Jul 12 15:42", "logout": "15:42", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Fri Jul 12 14:40", "logout": "14:40", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Fri Jul 12 08:45", "logout": "08:45", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Thu Jul 11 14:42", "logout": "14:42", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Thu Jul 11 12:03", "logout": "12:03", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Thu Jul 11 11:41", "logout": "11:41", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Thu Jul 11 11:41", "logout": "20:07", "duration": "12+08:25"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Thu Jul 11 11:41"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Thu Jul 11 11:41"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Jul 11 11:38", "logout": "11:38", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Thu Jul 11 10:32", "logout": "10:32", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Jul 11 08:24", "logout": "08:24", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Jul 11 08:17", "logout": "08:17", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Jul 11 08:09", "logout": "08:09", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Jul 11 08:07", "logout": "08:07", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Jul 11 08:03", "logout": "08:03", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Jul 11 07:57", "logout": "07:57", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Thu Jul 11 07:52", "logout": "07:52", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Wed Jul 10 17:35", "logout": "17:35", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Wed Jul 10 16:58", "logout": "16:58", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Wed Jul 10 16:39", "logout": "16:39", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Wed Jul 10 07:51", "logout": "07:51", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Tue Jul 9 22:30", "logout": "22:30", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Tue Jul 9 22:14", "logout": "22:14", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Tue Jul 9 22:14", "logout": "22:14", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Tue Jul 9 22:14", "logout": "22:14", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Tue Jul 9 22:12", "logout": "22:12", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys003", "hostname": null, "login": "Tue Jul 9 22:11", "logout": "22:11", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys002", "hostname": null, "login": "Tue Jul 9 22:11", "logout": "22:11", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Tue Jul 9 22:11", "logout": "22:11", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Tue Jul 9 22:11", "logout": "22:11", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys001", "hostname": null, "login": "Tue Jul 9 22:10", "logout": "22:10", "duration": "00:00"}, {"user": "kbrazil", "tty": "ttys000", "hostname": null, "login": "Tue Jul 9 22:04", "logout": "22:04", "duration": "00:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Tue Jul 9 08:29", "logout": "11:41", "duration": "2+03:11"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Tue Jul 9 08:29"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Tue Jul 9 08:27"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Mon Jul 8 18:07", "logout": "08:27", "duration": "14:20"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Mon Jul 8 18:07"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Mon Jul 8 18:06"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Mon Jul 8 17:47", "logout": "18:06", "duration": "00:18"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Mon Jul 8 17:47"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Mon Jul 8 17:47"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Tue Jul 2 11:49", "logout": "17:47", "duration": "6+05:58"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Tue Jul 2 11:48"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Tue Jul 2 11:44"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Tue Jul 2 10:44", "logout": "11:44", "duration": "00:59"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Tue Jul 2 10:43"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Tue Jul 2 10:00"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Tue Jul 2 09:52", "logout": "10:00", "duration": "00:08"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Tue Jul 2 09:50"}, {"user": "shutdown", "tty": null, "hostname": null, "login": "Tue Jul 2 09:37"}, {"user": "kbrazil", "tty": "console", "hostname": null, "login": "Tue Jul 2 08:56", "logout": "09:37", "duration": "00:40"}, {"user": "_mbsetupuser", "tty": "console", "hostname": null, "login": "Tue Jul 2 08:52", "logout": "08:57", "duration": "00:05"}, {"user": "root", "tty": "console", "hostname": null, "login": "Tue Jul 2 08:52", "logout": "08:52", "duration": "00:00"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Tue Jul 2 08:51"}, {"user": "reboot", "tty": null, "hostname": null, "login": "Fri Jun 21 15:54"}] diff --git a/tests/fixtures/osx-10.14.6/last.out b/tests/fixtures/osx-10.14.6/last.out new file mode 100644 index 00000000..592dbeaa --- /dev/null +++ b/tests/fixtures/osx-10.14.6/last.out @@ -0,0 +1,383 @@ +kbrazil ttys002 Fri Feb 28 14:45 still logged in +kbrazil ttys003 Fri Feb 28 08:59 still logged in +kbrazil ttys002 Thu Feb 27 14:31 - 14:31 (00:00) +kbrazil ttys003 Thu Feb 27 10:38 - 10:38 (00:00) +kbrazil ttys003 Thu Feb 27 10:18 - 10:18 (00:00) +kbrazil ttys002 Fri Feb 21 08:47 - 08:47 (00:00) +kbrazil ttys002 Thu Feb 20 14:53 - 14:53 (00:00) +kbrazil ttys000 Thu Feb 13 16:44 - 16:44 (00:00) +kbrazil ttys001 Tue Feb 11 21:25 still logged in +kbrazil ttys000 Mon Feb 10 15:54 - 15:54 (00:00) +kbrazil ttys000 Mon Feb 10 08:52 - 08:52 (00:00) +kbrazil ttys001 Fri Feb 7 23:32 - 23:32 (00:00) +kbrazil ttys000 Fri Feb 7 23:32 - 23:32 (00:00) +kbrazil console Fri Feb 7 23:32 still logged in +reboot ~ Fri Feb 7 23:31 +shutdown ~ Fri Feb 7 23:26 +root console Fri Feb 7 23:25 - shutdown (00:00) +kbrazil ttys002 Fri Feb 7 11:19 - 11:19 (00:00) +kbrazil ttys001 Fri Feb 7 11:19 - 11:19 (00:00) +kbrazil console Fri Feb 7 07:51 - 23:25 (15:34) +reboot ~ Fri Feb 7 07:51 +shutdown ~ Fri Feb 7 07:50 +kbrazil ttys000 Wed Feb 5 11:42 - 11:42 (00:00) +kbrazil ttys001 Tue Feb 4 14:23 - 14:23 (00:00) +kbrazil ttys000 Mon Feb 3 15:22 - 15:22 (00:00) +kbrazil ttys000 Mon Feb 3 08:58 - 08:58 (00:00) +kbrazil ttys001 Wed Jan 29 11:10 - 11:10 (00:00) +kbrazil ttys000 Tue Jan 28 09:00 - 09:00 (00:00) +kbrazil ttys000 Mon Jan 27 17:15 - 17:15 (00:00) +kbrazil ttys000 Sun Jan 26 19:13 - 19:13 (00:00) +kbrazil ttys000 Fri Jan 24 14:03 - 14:03 (00:00) +kbrazil ttys000 Wed Jan 22 09:17 - 09:17 (00:00) +kbrazil ttys000 Tue Jan 21 11:56 - 11:56 (00:00) +kbrazil ttys000 Fri Jan 17 12:49 - 12:49 (00:00) +kbrazil ttys000 Fri Jan 17 11:32 - 11:32 (00:00) +kbrazil ttys000 Thu Jan 16 14:51 - 14:51 (00:00) +kbrazil ttys000 Wed Jan 15 17:45 - 17:45 (00:00) +kbrazil ttys000 Tue Jan 14 13:30 - 13:30 (00:00) +kbrazil ttys000 Tue Jan 14 13:17 - 13:17 (00:00) +kbrazil ttys004 Tue Jan 14 11:55 - 11:55 (00:00) +kbrazil ttys002 Mon Jan 13 17:27 - 17:27 (00:00) +kbrazil ttys000 Mon Jan 13 16:11 - 16:11 (00:00) +kbrazil ttys000 Mon Jan 13 13:51 - 13:51 (00:00) +kbrazil ttys000 Fri Jan 10 13:21 - 13:21 (00:00) +kbrazil ttys000 Thu Jan 9 12:38 - 12:38 (00:00) +kbrazil ttys000 Wed Jan 8 06:08 - 06:08 (00:00) +kbrazil ttys000 Tue Jan 7 14:22 - 14:22 (00:00) +kbrazil ttys000 Tue Jan 7 08:57 - 08:57 (00:00) +kbrazil ttys002 Fri Jan 3 13:24 - 13:24 (00:00) +kbrazil ttys000 Thu Jan 2 14:05 - 14:05 (00:00) +kbrazil ttys000 Thu Jan 2 10:07 - 10:07 (00:00) +kbrazil ttys004 Mon Dec 16 14:17 - 14:17 (00:00) +kbrazil ttys002 Mon Dec 16 11:14 - 11:14 (00:00) +kbrazil ttys000 Thu Dec 12 12:10 - 12:10 (00:00) +kbrazil console Thu Dec 12 12:10 - 07:50 (56+19:39) +reboot ~ Thu Dec 12 12:09 +shutdown ~ Thu Dec 12 12:09 +kbrazil ttys000 Thu Dec 12 00:15 - 00:15 (00:00) +kbrazil console Thu Dec 12 00:15 - 12:09 (11:54) +reboot ~ Thu Dec 12 00:14 +shutdown ~ Thu Dec 12 00:08 +root console Thu Dec 12 00:08 - shutdown (00:00) +kbrazil ttys000 Wed Dec 11 16:17 - 16:17 (00:00) +kbrazil ttys000 Wed Dec 11 16:16 - 16:16 (00:00) +kbrazil ttys000 Fri Dec 6 10:41 - 10:41 (00:00) +kbrazil ttys003 Fri Dec 6 07:32 - 07:32 (00:00) +kbrazil ttys003 Mon Dec 2 23:44 - 23:44 (00:00) +kbrazil ttys002 Mon Dec 2 23:39 - 23:39 (00:00) +kbrazil ttys000 Mon Dec 2 23:07 - 23:07 (00:00) +kbrazil ttys002 Mon Dec 2 16:23 - 16:23 (00:00) +kbrazil ttys001 Mon Dec 2 16:22 - 16:22 (00:00) +kbrazil ttys000 Mon Dec 2 15:50 - 15:50 (00:00) +kbrazil ttys000 Mon Dec 2 13:50 - 13:50 (00:00) +kbrazil ttys000 Mon Dec 2 12:47 - 12:47 (00:00) +kbrazil ttys000 Mon Dec 2 12:06 - 12:06 (00:00) +kbrazil ttys004 Wed Nov 27 09:19 - 09:19 (00:00) +kbrazil ttys005 Mon Nov 25 08:08 - 08:08 (00:00) +kbrazil ttys004 Thu Nov 21 17:23 - 17:23 (00:00) +kbrazil ttys002 Thu Nov 21 10:28 - 10:28 (00:00) +kbrazil ttys002 Wed Nov 20 09:35 - 09:35 (00:00) +kbrazil ttys003 Mon Nov 11 12:49 - 12:49 (00:00) +kbrazil ttys002 Sun Nov 10 13:52 - 13:52 (00:00) +kbrazil ttys000 Sat Nov 9 10:34 - 10:34 (00:00) +kbrazil ttys001 Fri Nov 8 15:37 - 15:37 (00:00) +kbrazil ttys000 Fri Nov 8 14:01 - 14:01 (00:00) +kbrazil ttys002 Fri Nov 8 10:57 - 10:57 (00:00) +kbrazil ttys002 Fri Nov 8 06:29 - 06:29 (00:00) +kbrazil ttys000 Fri Nov 8 06:22 - 06:22 (00:00) +kbrazil ttys001 Thu Nov 7 19:00 - 19:00 (00:00) +kbrazil ttys000 Wed Nov 6 15:19 - 15:19 (00:00) +kbrazil ttys005 Mon Nov 4 07:54 - 07:54 (00:00) +kbrazil ttys003 Fri Nov 1 15:13 - 15:13 (00:00) +kbrazil ttys001 Fri Nov 1 15:13 - 15:13 (00:00) +kbrazil ttys001 Fri Nov 1 11:55 - 11:55 (00:00) +kbrazil ttys001 Fri Nov 1 11:16 - 11:16 (00:00) +kbrazil ttys001 Fri Nov 1 06:31 - 06:31 (00:00) +kbrazil ttys001 Thu Oct 31 14:13 - 14:13 (00:00) +kbrazil ttys001 Thu Oct 31 11:57 - 11:57 (00:00) +kbrazil console Thu Oct 31 09:37 - 00:08 (41+15:30) +reboot ~ Thu Oct 31 09:37 +shutdown ~ Thu Oct 31 09:30 +root console Thu Oct 31 09:30 - shutdown (00:00) +kbrazil ttys006 Thu Oct 31 07:35 - 07:35 (00:00) +kbrazil ttys004 Wed Oct 30 13:25 - 13:25 (00:00) +kbrazil ttys000 Tue Oct 29 18:16 - 18:16 (00:00) +kbrazil ttys004 Tue Oct 29 08:04 - 08:04 (00:00) +kbrazil ttys002 Mon Oct 28 21:58 - 21:58 (00:00) +kbrazil ttys001 Mon Oct 28 21:58 - 21:58 (00:00) +kbrazil ttys000 Mon Oct 28 21:58 - 21:58 (00:00) +kbrazil console Mon Oct 28 21:58 - 09:30 (2+11:31) +reboot ~ Mon Oct 28 21:57 +shutdown ~ Mon Oct 28 21:57 +kbrazil ttys007 Mon Oct 28 12:13 - 12:13 (00:00) +kbrazil ttys006 Thu Oct 24 15:57 - 15:57 (00:00) +kbrazil ttys006 Tue Oct 22 17:06 - 17:06 (00:00) +kbrazil ttys002 Mon Oct 21 12:08 - 12:08 (00:00) +kbrazil ttys001 Mon Oct 21 12:08 - 12:08 (00:00) +kbrazil ttys000 Mon Oct 21 12:08 - 12:08 (00:00) +kbrazil console Mon Oct 21 12:04 - 21:57 (7+09:52) +reboot ~ Mon Oct 21 12:03 +shutdown ~ Mon Oct 21 12:00 +root console Mon Oct 21 11:59 - shutdown (00:00) +kbrazil ttys000 Thu Oct 17 17:08 - 17:08 (00:00) +kbrazil ttys004 Tue Oct 15 11:36 - 11:36 (00:00) +kbrazil ttys003 Tue Oct 15 11:10 - 11:10 (00:00) +kbrazil ttys002 Fri Oct 4 15:07 - 15:07 (00:00) +kbrazil ttys001 Thu Oct 3 11:45 - 11:45 (00:00) +kbrazil ttys001 Thu Oct 3 07:33 - 07:33 (00:00) +kbrazil ttys001 Wed Oct 2 17:03 - 17:03 (00:00) +kbrazil ttys001 Wed Oct 2 15:39 - 15:39 (00:00) +kbrazil ttys001 Wed Oct 2 14:18 - 14:18 (00:00) +kbrazil console Wed Oct 2 12:47 - 11:59 (18+23:12) +reboot ~ Wed Oct 2 12:47 +shutdown ~ Wed Oct 2 12:46 +kbrazil ttys002 Wed Oct 2 12:15 - 12:15 (00:00) +kbrazil ttys001 Wed Oct 2 12:06 - 12:06 (00:00) +kbrazil ttys001 Wed Oct 2 11:54 - 11:54 (00:00) +kbrazil ttys003 Mon Sep 30 16:29 - 16:29 (00:00) +kbrazil ttys002 Fri Sep 27 15:55 - 15:55 (00:00) +kbrazil ttys001 Fri Sep 27 15:51 - 15:51 (00:00) +kbrazil console Fri Sep 27 15:18 - 12:46 (4+21:28) +reboot ~ Fri Sep 27 15:17 +shutdown ~ Fri Sep 27 15:15 +kbrazil ttys001 Fri Sep 27 06:44 - 06:44 (00:00) +kbrazil ttys001 Thu Sep 26 15:22 - 15:22 (00:00) +kbrazil ttys001 Wed Sep 25 15:09 - 15:09 (00:00) +kbrazil ttys001 Wed Sep 25 08:16 - 08:16 (00:00) +kbrazil ttys001 Tue Sep 24 16:42 - 16:42 (00:00) +kbrazil ttys001 Tue Sep 24 14:20 - 14:20 (00:00) +kbrazil ttys001 Tue Sep 24 10:03 - 10:03 (00:00) +kbrazil ttys003 Wed Sep 18 12:17 - 12:17 (00:00) +kbrazil ttys002 Wed Sep 18 12:14 - 12:14 (00:00) +kbrazil ttys001 Wed Sep 18 12:09 - 12:09 (00:00) +kbrazil ttys001 Wed Sep 18 12:09 - 12:09 (00:00) +kbrazil ttys004 Wed Sep 18 11:25 - 11:25 (00:00) +kbrazil ttys002 Wed Sep 18 11:13 - 11:13 (00:00) +kbrazil ttys001 Tue Sep 17 16:31 - 16:31 (00:00) +kbrazil ttys002 Tue Sep 17 15:53 - 15:53 (00:00) +kbrazil ttys001 Tue Sep 17 14:41 - 14:41 (00:00) +kbrazil ttys001 Tue Sep 17 14:34 - 14:34 (00:00) +kbrazil console Tue Sep 17 13:54 - 15:15 (10+01:20) +reboot ~ Tue Sep 17 13:54 +shutdown ~ Tue Sep 17 13:53 +kbrazil ttys001 Tue Sep 17 07:03 - 07:03 (00:00) +kbrazil ttys001 Mon Sep 16 08:50 - 08:50 (00:00) +kbrazil ttys001 Fri Sep 13 02:36 - 02:36 (00:00) +kbrazil ttys001 Fri Sep 13 02:10 - 02:10 (00:00) +kbrazil ttys001 Thu Sep 12 05:15 - 05:15 (00:00) +kbrazil ttys001 Tue Sep 10 04:42 - 04:42 (00:00) +kbrazil ttys002 Fri Sep 6 10:15 - 10:15 (00:00) +kbrazil ttys001 Fri Sep 6 09:20 - 09:20 (00:00) +kbrazil ttys002 Wed Sep 4 14:19 - 14:19 (00:00) +kbrazil ttys001 Wed Sep 4 13:54 - 13:54 (00:00) +kbrazil ttys001 Wed Sep 4 09:10 - 09:10 (00:00) +kbrazil ttys001 Tue Sep 3 14:59 - 14:59 (00:00) +kbrazil ttys001 Tue Sep 3 10:56 - 10:56 (00:00) +kbrazil ttys001 Tue Sep 3 08:32 - 08:32 (00:00) +kbrazil ttys002 Thu Aug 29 17:21 - 17:21 (00:00) +kbrazil ttys001 Thu Aug 29 17:13 - 17:13 (00:00) +kbrazil ttys001 Thu Aug 29 14:48 - 14:48 (00:00) +kbrazil ttys003 Thu Aug 29 14:36 - 14:36 (00:00) +kbrazil ttys002 Thu Aug 29 14:35 - 14:35 (00:00) +kbrazil ttys001 Thu Aug 29 14:28 - 14:28 (00:00) +kbrazil ttys003 Thu Aug 29 12:47 - 12:47 (00:00) +kbrazil ttys003 Thu Aug 29 09:47 - 09:47 (00:00) +kbrazil ttys002 Thu Aug 29 09:41 - 09:41 (00:00) +kbrazil ttys001 Thu Aug 29 09:32 - 09:32 (00:00) +kbrazil ttys001 Thu Aug 29 09:30 - 09:30 (00:00) +kbrazil ttys001 Wed Aug 28 14:29 - 14:29 (00:00) +kbrazil console Tue Aug 27 21:22 - 13:53 (20+16:31) +reboot ~ Tue Aug 27 21:21 +shutdown ~ Tue Aug 27 21:17 +root console Tue Aug 27 21:17 - shutdown (00:00) +kbrazil ttys002 Mon Aug 26 15:09 - 15:09 (00:00) +kbrazil ttys002 Mon Aug 26 07:54 - 07:54 (00:00) +kbrazil ttys002 Fri Aug 23 16:22 - 16:22 (00:00) +kbrazil ttys001 Fri Aug 23 15:21 - 15:21 (00:00) +kbrazil ttys000 Fri Aug 23 15:19 - 15:19 (00:00) +kbrazil ttys000 Fri Aug 23 06:46 - 06:46 (00:00) +kbrazil ttys000 Thu Aug 22 17:48 - 17:48 (00:00) +kbrazil ttys003 Thu Aug 22 14:21 - 14:21 (00:00) +kbrazil ttys002 Thu Aug 22 14:21 - 14:21 (00:00) +kbrazil ttys001 Thu Aug 22 14:21 - 14:21 (00:00) +kbrazil ttys000 Thu Aug 22 14:21 - 14:21 (00:00) +kbrazil console Thu Aug 22 14:20 - 21:17 (5+06:56) +reboot ~ Thu Aug 22 14:20 +shutdown ~ Thu Aug 22 14:17 +kbrazil ttys004 Wed Aug 21 15:24 - 15:24 (00:00) +kbrazil ttys000 Tue Aug 20 19:52 - 19:52 (00:00) +kbrazil ttys003 Tue Aug 20 16:32 - 16:32 (00:00) +kbrazil ttys003 Mon Aug 19 17:51 - 17:51 (00:00) +kbrazil ttys002 Mon Aug 19 14:42 - 14:42 (00:00) +kbrazil ttys000 Mon Aug 19 14:02 - 14:02 (00:00) +kbrazil ttys002 Sat Aug 17 10:02 - 10:02 (00:00) +kbrazil ttys000 Fri Aug 16 18:20 - 18:20 (00:00) +kbrazil ttys000 Fri Aug 16 06:46 - 06:46 (00:00) +kbrazil ttys003 Thu Aug 15 17:07 - 17:07 (00:00) +kbrazil ttys000 Thu Aug 15 17:00 - 17:00 (00:00) +kbrazil ttys003 Thu Aug 15 16:01 - 16:01 (00:00) +kbrazil ttys000 Thu Aug 15 15:55 - 15:55 (00:00) +kbrazil ttys005 Thu Aug 15 14:48 - 14:48 (00:00) +kbrazil ttys005 Thu Aug 15 14:45 - 14:45 (00:00) +kbrazil ttys003 Thu Aug 15 14:35 - 14:35 (00:00) +kbrazil ttys000 Thu Aug 15 14:24 - 14:24 (00:00) +kbrazil ttys005 Thu Aug 15 10:57 - 10:57 (00:00) +kbrazil ttys003 Thu Aug 15 10:48 - 10:48 (00:00) +kbrazil ttys002 Thu Aug 15 10:43 - 10:43 (00:00) +kbrazil ttys000 Thu Aug 15 10:39 - 10:39 (00:00) +kbrazil console Thu Aug 15 10:39 - 14:17 (7+03:37) +reboot ~ Thu Aug 15 10:39 +shutdown ~ Thu Aug 15 10:38 +kbrazil ttys000 Thu Aug 15 08:56 - 08:56 (00:00) +kbrazil ttys004 Thu Aug 15 08:09 - 08:09 (00:00) +kbrazil ttys002 Thu Aug 15 08:08 - 08:08 (00:00) +kbrazil ttys000 Wed Aug 14 18:12 - 18:12 (00:00) +kbrazil ttys000 Wed Aug 14 15:08 - 15:08 (00:00) +kbrazil ttys004 Wed Aug 14 09:11 - 09:11 (00:00) +kbrazil ttys002 Wed Aug 14 09:03 - 09:03 (00:00) +kbrazil ttys000 Tue Aug 13 14:47 - 14:47 (00:00) +kbrazil ttys001 Tue Aug 13 11:14 - 11:14 (00:00) +kbrazil ttys000 Tue Aug 13 11:14 - 11:14 (00:00) +kbrazil ttys001 Tue Aug 13 10:54 - 10:54 (00:00) +kbrazil ttys000 Tue Aug 13 10:43 - 10:43 (00:00) +kbrazil ttys000 Tue Aug 13 10:29 - 10:29 (00:00) +kbrazil ttys000 Tue Aug 13 09:27 - 09:27 (00:00) +kbrazil ttys000 Tue Aug 13 05:40 - 05:40 (00:00) +kbrazil ttys000 Mon Aug 12 14:11 - 14:11 (00:00) +kbrazil ttys002 Mon Aug 12 13:54 - 13:54 (00:00) +kbrazil ttys001 Mon Aug 12 13:54 - 13:54 (00:00) +kbrazil ttys000 Mon Aug 12 13:54 - 13:54 (00:00) +kbrazil console Mon Aug 12 13:54 - 10:38 (2+20:44) +reboot ~ Mon Aug 12 13:53 +shutdown ~ Mon Aug 12 13:52 +kbrazil ttys002 Mon Aug 12 13:37 - 13:37 (00:00) +kbrazil ttys004 Thu Aug 8 09:15 - 09:15 (00:00) +kbrazil ttys003 Thu Aug 8 09:14 - 09:14 (00:00) +kbrazil ttys002 Thu Aug 8 09:03 - 09:03 (00:00) +kbrazil ttys002 Thu Aug 8 07:17 - 07:17 (00:00) +kbrazil ttys000 Mon Aug 5 10:57 - 10:57 (00:00) +kbrazil ttys000 Mon Aug 5 08:34 - 08:34 (00:00) +kbrazil console Mon Aug 5 08:29 - 13:52 (7+05:23) +reboot ~ Mon Aug 5 08:28 +shutdown ~ Mon Aug 5 08:25 +root console Mon Aug 5 08:24 - shutdown (00:01) +kbrazil ttys002 Sat Aug 3 07:20 - 07:20 (00:00) +kbrazil ttys001 Sat Aug 3 06:54 - 06:54 (00:00) +kbrazil ttys005 Fri Aug 2 10:21 - 10:21 (00:00) +kbrazil ttys004 Fri Aug 2 10:21 - 10:21 (00:00) +kbrazil ttys003 Fri Aug 2 10:21 - 10:21 (00:00) +kbrazil ttys002 Fri Aug 2 10:21 - 10:21 (00:00) +kbrazil ttys001 Fri Aug 2 10:21 - 10:21 (00:00) +kbrazil console Fri Aug 2 07:00 - 08:24 (3+01:23) +reboot ~ Fri Aug 2 07:00 +shutdown ~ Fri Aug 2 06:59 +kbrazil console Fri Aug 2 06:06 - 06:59 (00:53) +reboot ~ Fri Aug 2 06:06 +shutdown ~ Fri Aug 2 06:05 +kbrazil ttys010 Wed Jul 31 08:44 - 08:44 (00:00) +kbrazil ttys010 Tue Jul 30 14:48 - 14:48 (00:00) +kbrazil ttys008 Tue Jul 30 08:23 - 08:23 (00:00) +kbrazil ttys006 Tue Jul 30 07:24 - 07:24 (00:00) +kbrazil ttys006 Mon Jul 29 13:32 - 13:32 (00:00) +kbrazil ttys003 Mon Jul 29 12:50 - 12:50 (00:00) +kbrazil ttys003 Mon Jul 29 12:46 - 12:46 (00:00) +kbrazil ttys001 Sun Jul 28 14:12 - 14:12 (00:00) +kbrazil console Sun Jul 28 14:07 - 06:04 (4+15:57) +reboot ~ Sun Jul 28 14:07 +shutdown ~ Sun Jul 28 14:06 +kbrazil ttys002 Sun Jul 28 13:17 - 13:17 (00:00) +kbrazil ttys000 Sun Jul 28 13:17 - 13:17 (00:00) +kbrazil ttys002 Sun Jul 28 13:16 - 13:16 (00:00) +kbrazil ttys001 Sun Jul 28 13:16 - 13:16 (00:00) +kbrazil ttys000 Sun Jul 28 13:16 - 13:16 (00:00) +kbrazil console Sun Jul 28 13:16 - 14:06 (00:50) +reboot ~ Sun Jul 28 13:16 +shutdown ~ Sun Jul 28 13:15 +kbrazil ttys003 Sun Jul 28 13:12 - 13:12 (00:00) +kbrazil ttys001 Sun Jul 28 13:10 - 13:10 (00:00) +kbrazil ttys005 Sun Jul 28 12:38 - 12:38 (00:00) +kbrazil ttys005 Sun Jul 28 12:01 - 12:01 (00:00) +kbrazil ttys005 Sun Jul 28 08:17 - 08:17 (00:00) +kbrazil ttys005 Sat Jul 27 18:36 - 18:36 (00:00) +kbrazil ttys003 Sat Jul 27 18:25 - 18:25 (00:00) +kbrazil ttys001 Sat Jul 27 18:19 - 18:19 (00:00) +kbrazil ttys002 Fri Jul 26 10:58 - 10:58 (00:00) +kbrazil ttys002 Fri Jul 26 08:16 - 08:16 (00:00) +kbrazil console Thu Jul 25 18:38 - 13:15 (2+18:36) +reboot ~ Thu Jul 25 18:38 +shutdown ~ Thu Jul 25 18:37 +kbrazil ttys004 Thu Jul 25 10:57 - 10:57 (00:00) +kbrazil ttys004 Thu Jul 25 08:33 - 08:33 (00:00) +kbrazil ttys002 Wed Jul 24 14:39 - 14:39 (00:00) +kbrazil ttys005 Wed Jul 24 12:13 - 12:13 (00:00) +kbrazil ttys004 Wed Jul 24 10:51 - 10:51 (00:00) +kbrazil ttys002 Wed Jul 24 10:17 - 10:17 (00:00) +kbrazil ttys000 Wed Jul 24 02:54 - 02:54 (00:00) +kbrazil console Tue Jul 23 20:16 - 18:37 (1+22:21) +reboot ~ Tue Jul 23 20:15 +shutdown ~ Tue Jul 23 20:09 +root console Tue Jul 23 20:07 - shutdown (00:01) +kbrazil ttys001 Tue Jul 23 07:03 - 07:03 (00:00) +kbrazil ttys007 Tue Jul 16 14:57 - 14:57 (00:00) +kbrazil ttys007 Mon Jul 15 14:45 - 14:45 (00:00) +kbrazil ttys005 Mon Jul 15 14:38 - 14:38 (00:00) +kbrazil ttys004 Mon Jul 15 12:12 - 12:12 (00:00) +kbrazil ttys002 Fri Jul 12 15:42 - 15:42 (00:00) +kbrazil ttys000 Fri Jul 12 14:40 - 14:40 (00:00) +kbrazil ttys000 Fri Jul 12 08:45 - 08:45 (00:00) +kbrazil ttys000 Thu Jul 11 14:42 - 14:42 (00:00) +kbrazil ttys000 Thu Jul 11 12:03 - 12:03 (00:00) +kbrazil ttys000 Thu Jul 11 11:41 - 11:41 (00:00) +kbrazil console Thu Jul 11 11:41 - 20:07 (12+08:25) +reboot ~ Thu Jul 11 11:41 +shutdown ~ Thu Jul 11 11:41 +kbrazil ttys001 Thu Jul 11 11:38 - 11:38 (00:00) +kbrazil ttys002 Thu Jul 11 10:32 - 10:32 (00:00) +kbrazil ttys001 Thu Jul 11 08:24 - 08:24 (00:00) +kbrazil ttys001 Thu Jul 11 08:17 - 08:17 (00:00) +kbrazil ttys001 Thu Jul 11 08:09 - 08:09 (00:00) +kbrazil ttys001 Thu Jul 11 08:07 - 08:07 (00:00) +kbrazil ttys001 Thu Jul 11 08:03 - 08:03 (00:00) +kbrazil ttys001 Thu Jul 11 07:57 - 07:57 (00:00) +kbrazil ttys001 Thu Jul 11 07:52 - 07:52 (00:00) +kbrazil ttys001 Wed Jul 10 17:35 - 17:35 (00:00) +kbrazil ttys003 Wed Jul 10 16:58 - 16:58 (00:00) +kbrazil ttys002 Wed Jul 10 16:39 - 16:39 (00:00) +kbrazil ttys001 Wed Jul 10 07:51 - 07:51 (00:00) +kbrazil ttys000 Tue Jul 9 22:30 - 22:30 (00:00) +kbrazil ttys000 Tue Jul 9 22:14 - 22:14 (00:00) +kbrazil ttys001 Tue Jul 9 22:14 - 22:14 (00:00) +kbrazil ttys000 Tue Jul 9 22:14 - 22:14 (00:00) +kbrazil ttys000 Tue Jul 9 22:12 - 22:12 (00:00) +kbrazil ttys003 Tue Jul 9 22:11 - 22:11 (00:00) +kbrazil ttys002 Tue Jul 9 22:11 - 22:11 (00:00) +kbrazil ttys001 Tue Jul 9 22:11 - 22:11 (00:00) +kbrazil ttys000 Tue Jul 9 22:11 - 22:11 (00:00) +kbrazil ttys001 Tue Jul 9 22:10 - 22:10 (00:00) +kbrazil ttys000 Tue Jul 9 22:04 - 22:04 (00:00) +kbrazil console Tue Jul 9 08:29 - 11:41 (2+03:11) +reboot ~ Tue Jul 9 08:29 +shutdown ~ Tue Jul 9 08:27 +kbrazil console Mon Jul 8 18:07 - 08:27 (14:20) +reboot ~ Mon Jul 8 18:07 +shutdown ~ Mon Jul 8 18:06 +kbrazil console Mon Jul 8 17:47 - 18:06 (00:18) +reboot ~ Mon Jul 8 17:47 +shutdown ~ Mon Jul 8 17:47 +kbrazil console Tue Jul 2 11:49 - 17:47 (6+05:58) +reboot ~ Tue Jul 2 11:48 +shutdown ~ Tue Jul 2 11:44 +kbrazil console Tue Jul 2 10:44 - 11:44 (00:59) +reboot ~ Tue Jul 2 10:43 +shutdown ~ Tue Jul 2 10:00 +kbrazil console Tue Jul 2 09:52 - 10:00 (00:08) +reboot ~ Tue Jul 2 09:50 +shutdown ~ Tue Jul 2 09:37 +kbrazil console Tue Jul 2 08:56 - 09:37 (00:40) +_mbsetupuser console Tue Jul 2 08:52 - 08:57 (00:05) +root console Tue Jul 2 08:52 - 08:52 (00:00) +reboot ~ Tue Jul 2 08:51 +reboot ~ Fri Jun 21 15:54 + +wtmp begins Fri Jun 21 15:54 diff --git a/tests/fixtures/ubuntu-18.04/last-w.json b/tests/fixtures/ubuntu-18.04/last-w.json new file mode 100644 index 00000000..f75d8b8e --- /dev/null +++ b/tests/fixtures/ubuntu-18.04/last-w.json @@ -0,0 +1 @@ +[{"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Feb 28 23:03", "logout": "still logged in"}, {"user": "reboot", "tty": "system boot", "hostname": "4.15.0-88-generic", "login": "Fri Feb 28 23:03", "logout": "running"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Feb 28 14:56", "logout": "down", "duration": "06:51"}, {"user": "reboot", "tty": "system boot", "hostname": "4.15.0-88-generic", "login": "Fri Feb 28 14:55", "logout": "21:47", "duration": "06:52"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Feb 27 23:50", "logout": "down", "duration": "00:10"}, {"user": "reboot", "tty": "system boot", "hostname": "4.15.0-88-generic", "login": "Thu Feb 27 23:49", "logout": "00:00", "duration": "00:11"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Feb 27 18:07", "logout": "down", "duration": "00:04"}, {"user": "reboot", "tty": "system boot", "hostname": "4.15.0-76-generic", "login": "Thu Feb 27 18:07", "logout": "18:12", "duration": "00:04"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Tue Feb 18 02:50", "logout": "down", "duration": "1+13:58"}, {"user": "reboot", "tty": "system boot", "hostname": "4.15.0-76-generic", "login": "Tue Feb 18 02:50", "logout": "16:48", "duration": "1+13:58"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Feb 14 02:06", "logout": "01:48", "duration": "3+23:41"}, {"user": "reboot", "tty": "system boot", "hostname": "4.15.0-76-generic", "login": "Fri Feb 14 02:06", "logout": "01:48", "duration": "3+23:41"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Feb 6 01:05", "logout": "down", "duration": "1+14:43"}, {"user": "reboot", "tty": "system boot", "hostname": "4.15.0-76-generic", "login": "Thu Feb 6 01:04", "logout": "15:48", "duration": "1+14:43"}] diff --git a/tests/fixtures/ubuntu-18.04/last-w.out b/tests/fixtures/ubuntu-18.04/last-w.out new file mode 100644 index 00000000..97f219b2 --- /dev/null +++ b/tests/fixtures/ubuntu-18.04/last-w.out @@ -0,0 +1,16 @@ +kbrazil ttyS0 Fri Feb 28 23:03 still logged in +reboot system boot 4.15.0-88-generic Fri Feb 28 23:03 still running +kbrazil ttyS0 Fri Feb 28 14:56 - down (06:51) +reboot system boot 4.15.0-88-generic Fri Feb 28 14:55 - 21:47 (06:52) +kbrazil ttyS0 Thu Feb 27 23:50 - down (00:10) +reboot system boot 4.15.0-88-generic Thu Feb 27 23:49 - 00:00 (00:11) +kbrazil ttyS0 Thu Feb 27 18:07 - down (00:04) +reboot system boot 4.15.0-76-generic Thu Feb 27 18:07 - 18:12 (00:04) +kbrazil ttyS0 Tue Feb 18 02:50 - down (1+13:58) +reboot system boot 4.15.0-76-generic Tue Feb 18 02:50 - 16:48 (1+13:58) +kbrazil ttyS0 Fri Feb 14 02:06 - 01:48 (3+23:41) +reboot system boot 4.15.0-76-generic Fri Feb 14 02:06 - 01:48 (3+23:41) +kbrazil ttyS0 Thu Feb 6 01:05 - down (1+14:43) +reboot system boot 4.15.0-76-generic Thu Feb 6 01:04 - 15:48 (1+14:43) + +wtmp begins Wed Feb 5 22:22:55 2020 diff --git a/tests/fixtures/ubuntu-18.04/last.json b/tests/fixtures/ubuntu-18.04/last.json new file mode 100644 index 00000000..4a6a5072 --- /dev/null +++ b/tests/fixtures/ubuntu-18.04/last.json @@ -0,0 +1 @@ +[{"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Feb 28 23:03", "logout": "still logged in"}, {"user": "reboot", "tty": "system boot", "hostname": "4.15.0-88-generi", "login": "Fri Feb 28 23:03", "logout": "running"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Feb 28 14:56", "logout": "down", "duration": "06:51"}, {"user": "reboot", "tty": "system boot", "hostname": "4.15.0-88-generi", "login": "Fri Feb 28 14:55", "logout": "21:47", "duration": "06:52"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Feb 27 23:50", "logout": "down", "duration": "00:10"}, {"user": "reboot", "tty": "system boot", "hostname": "4.15.0-88-generi", "login": "Thu Feb 27 23:49", "logout": "00:00", "duration": "00:11"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Feb 27 18:07", "logout": "down", "duration": "00:04"}, {"user": "reboot", "tty": "system boot", "hostname": "4.15.0-76-generi", "login": "Thu Feb 27 18:07", "logout": "18:12", "duration": "00:04"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Tue Feb 18 02:50", "logout": "down", "duration": "1+13:58"}, {"user": "reboot", "tty": "system boot", "hostname": "4.15.0-76-generi", "login": "Tue Feb 18 02:50", "logout": "16:48", "duration": "1+13:58"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Fri Feb 14 02:06", "logout": "01:48", "duration": "3+23:41"}, {"user": "reboot", "tty": "system boot", "hostname": "4.15.0-76-generi", "login": "Fri Feb 14 02:06", "logout": "01:48", "duration": "3+23:41"}, {"user": "kbrazil", "tty": "ttyS0", "hostname": null, "login": "Thu Feb 6 01:05", "logout": "down", "duration": "1+14:43"}, {"user": "reboot", "tty": "system boot", "hostname": "4.15.0-76-generi", "login": "Thu Feb 6 01:04", "logout": "15:48", "duration": "1+14:43"}] diff --git a/tests/fixtures/ubuntu-18.04/last.out b/tests/fixtures/ubuntu-18.04/last.out new file mode 100644 index 00000000..905388e9 --- /dev/null +++ b/tests/fixtures/ubuntu-18.04/last.out @@ -0,0 +1,16 @@ +kbrazil ttyS0 Fri Feb 28 23:03 still logged in +reboot system boot 4.15.0-88-generi Fri Feb 28 23:03 still running +kbrazil ttyS0 Fri Feb 28 14:56 - down (06:51) +reboot system boot 4.15.0-88-generi Fri Feb 28 14:55 - 21:47 (06:52) +kbrazil ttyS0 Thu Feb 27 23:50 - down (00:10) +reboot system boot 4.15.0-88-generi Thu Feb 27 23:49 - 00:00 (00:11) +kbrazil ttyS0 Thu Feb 27 18:07 - down (00:04) +reboot system boot 4.15.0-76-generi Thu Feb 27 18:07 - 18:12 (00:04) +kbrazil ttyS0 Tue Feb 18 02:50 - down (1+13:58) +reboot system boot 4.15.0-76-generi Tue Feb 18 02:50 - 16:48 (1+13:58) +kbrazil ttyS0 Fri Feb 14 02:06 - 01:48 (3+23:41) +reboot system boot 4.15.0-76-generi Fri Feb 14 02:06 - 01:48 (3+23:41) +kbrazil ttyS0 Thu Feb 6 01:05 - down (1+14:43) +reboot system boot 4.15.0-76-generi Thu Feb 6 01:04 - 15:48 (1+14:43) + +wtmp begins Wed Feb 5 22:22:55 2020 diff --git a/tests/fixtures/ubuntu-18.04/lastb.json b/tests/fixtures/ubuntu-18.04/lastb.json new file mode 100644 index 00000000..3deb9714 --- /dev/null +++ b/tests/fixtures/ubuntu-18.04/lastb.json @@ -0,0 +1 @@ +[{"user": "UNKNOWN", "tty": "ttyS0", "hostname": null, "login": "Fri Feb 14 02:06", "logout": "02:06", "duration": "00:00"}] diff --git a/tests/fixtures/ubuntu-18.04/lastb.out b/tests/fixtures/ubuntu-18.04/lastb.out new file mode 100644 index 00000000..9237aa42 --- /dev/null +++ b/tests/fixtures/ubuntu-18.04/lastb.out @@ -0,0 +1,3 @@ +UNKNOWN ttyS0 Fri Feb 14 02:06 - 02:06 (00:00) + +btmp begins Fri Feb 14 02:06:41 2020 diff --git a/tests/test_last.py b/tests/test_last.py new file mode 100644 index 00000000..5f734352 --- /dev/null +++ b/tests/test_last.py @@ -0,0 +1,100 @@ +import os +import json +import unittest +import jc.parsers.last + +THIS_DIR = os.path.dirname(os.path.abspath(__file__)) + + +class MyTests(unittest.TestCase): + + def setUp(self): + # input + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/last.out'), 'r') as f: + self.centos_7_7_last = f.read() + + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/ubuntu-18.04/last.out'), 'r') as f: + self.ubuntu_18_4_last = f.read() + + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/last.out'), 'r') as f: + self.osx_10_14_6_last = f.read() + + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/lastb.out'), 'r') as f: + self.centos_7_7_lastb = f.read() + + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/ubuntu-18.04/lastb.out'), 'r') as f: + self.ubuntu_18_4_lastb = f.read() + + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/last-w.out'), 'r') as f: + self.centos_7_7_last_w = f.read() + + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/ubuntu-18.04/last-w.out'), 'r') as f: + self.ubuntu_18_4_last_w = f.read() + + # output + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/last.json'), 'r') as f: + self.centos_7_7_last_json = json.loads(f.read()) + + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/ubuntu-18.04/last.json'), 'r') as f: + self.ubuntu_18_4_last_json = json.loads(f.read()) + + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/last.json'), 'r') as f: + self.osx_10_14_6_last_json = json.loads(f.read()) + + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/lastb.json'), 'r') as f: + self.centos_7_7_lastb_json = json.loads(f.read()) + + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/ubuntu-18.04/lastb.json'), 'r') as f: + self.ubuntu_18_4_lastb_json = json.loads(f.read()) + + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/last-w.json'), 'r') as f: + self.centos_7_7_last_w_json = json.loads(f.read()) + + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/ubuntu-18.04/last-w.json'), 'r') as f: + self.ubuntu_18_4_last_w_json = json.loads(f.read()) + + def test_last_centos_7_7(self): + """ + Test plain 'last' on Centos 7.7 + """ + self.assertEqual(jc.parsers.last.parse(self.centos_7_7_last, quiet=True), self.centos_7_7_last_json) + + def test_last_ubuntu_18_4(self): + """ + Test plain 'last' on Ubuntu 18.4 + """ + self.assertEqual(jc.parsers.last.parse(self.ubuntu_18_4_last, quiet=True), self.ubuntu_18_4_last_json) + + def test_last_osx_10_14_6(self): + """ + Test plain 'last' on OSX 10.14.6 + """ + self.assertEqual(jc.parsers.last.parse(self.osx_10_14_6_last, quiet=True), self.osx_10_14_6_last_json) + + def test_lastb_centos_7_7(self): + """ + Test plain 'lastb' on Centos 7.7 + """ + self.assertEqual(jc.parsers.last.parse(self.centos_7_7_lastb, quiet=True), self.centos_7_7_lastb_json) + + def test_lastb_ubuntu_18_4(self): + """ + Test plain 'lastb' on Ubuntu 18.4 + """ + self.assertEqual(jc.parsers.last.parse(self.ubuntu_18_4_lastb, quiet=True), self.ubuntu_18_4_lastb_json) + + def test_last_w_centos_7_7(self): + """ + Test 'last -w' on Centos 7.7 + """ + self.assertEqual(jc.parsers.last.parse(self.centos_7_7_last_w, quiet=True), self.centos_7_7_last_w_json) + + def test_last_w_ubuntu_18_4(self): + """ + Test 'last -w' on Ubuntu 18.4 + """ + self.assertEqual(jc.parsers.last.parse(self.ubuntu_18_4_last_w, quiet=True), self.ubuntu_18_4_last_w_json) + + +if __name__ == '__main__': + unittest.main()