{"time":"2015-09-06T05:58:05+09:00","method":"POST","uri":"/foo/bar?token=xxx&uuid=1234","status":200,"body_bytes":12,"response_time":0.057,"ua":"chrome","host":"192.168.1.100"}
{"time":"2015-09-06T05:58:41+09:00","method":"POST","uri":"/foo/bar?token=yyy","status":200,"body_bytes":34,"response_time":0.100,"ua":"chrome","host":"192.168.1.100"}
{"time":"2015-09-06T06:00:42+09:00","method":"GET","uri":"/foo/bar?token=zzz","status":200,"body_bytes":56,"response_time":0.123,"ua":"firefox","host":"192.168.1.100"}
{"time":"2015-09-06T05:58:44+09:00","method":"POST","uri":"/foo/bar?token=yyy","status":200,"body_bytes":34,"response_time":0.234,"ua":"firefox","host":"192.168.1.110"}
{"time":"2015-09-06T05:58:44+09:00","method":"POST","uri":"/hoge/piyo?id=yyy","status":200,"body_bytes":34,"response_time":0.234,"ua":"firefox","host":"192.168.1.111"}
{"time":"2015-09-06T05:58:05+09:00","method":"POST","uri":"/foo/bar?token=xxx&uuid=1234","status":200,"body_bytes":12,"response_time":0.057,"ua":"edge","host":"192.168.1.120"}
{"time":"2015-09-06T05:58:41+09:00","method":"POST","uri":"/foo/bar?token=yyy","status":200,"body_bytes":34,"response_time":0.100,"ua":"edge","host":"192.168.1.120"}
{"time":"2015-09-06T06:00:42+09:00","method":"GET","uri":"/foo/bar?token=zzz","status":200,"body_bytes":56,"response_time":0.123,"ua":"edge","host":"192.168.1.120"}
{"time":"2015-09-06T06:00:43+09:00","method":"GET","uri":"/diary/entry/1234","status":200,"body_bytes":15,"response_time":0.135,"ua":"chrome","host":"192.168.1.101"}
{"time":"2015-09-06T06:00:43+09:00","method":"GET","uri":"/diary/entry/5678","status":200,"body_bytes":30,"response_time":0.432,"ua":"chrome","host":"192.168.1.100"}
{"time":"2015-09-06T06:00:43+09:00","method":"GET","uri":"/foo/bar/5xx","status":504,"body_bytes":15,"response_time":60.000,"ua":"chrome","host":"192.168.1.101"}
$ cat access.log | alp count --keys ua,host
+-----+---------+---------------+
| SUM | UA | HOST |
+-----+---------+---------------+
| 1 | firefox | 192.168.1.100 |
| 1 | firefox | 192.168.1.110 |
| 1 | firefox | 192.168.1.111 |
| 2 | chrome | 192.168.1.101 |
| 3 | chrome | 192.168.1.100 |
| 3 | edge | 192.168.1.120 |
+-----+---------+---------------+
$ cat access.log | alp count --keys ua,host -r
+-----+---------+---------------+
| SUM | UA | HOST |
+-----+---------+---------------+
| 3 | chrome | 192.168.1.100 |
| 3 | edge | 192.168.1.120 |
| 2 | chrome | 192.168.1.101 |
| 1 | firefox | 192.168.1.100 |
| 1 | firefox | 192.168.1.110 |
| 1 | firefox | 192.168.1.111 |
+-----+---------+---------------+