Skip to content

v1.0.13

Compare
Choose a tag to compare
@github-actions github-actions released this 22 Jul 08:39
· 28 commits to main since this release
9cef20e
{"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 |
+-----+---------+---------------+

Changelog

  • 9cef20e Merge pull request #73 from tkuchiki/add-count-subcommand
  • e52b64d Merge pull request #72 from tkuchiki/fix-gitignore
  • d1ba450 Merge pull request #71 from tkuchiki/migrate-to-cobra