Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save papiron/2704aa5568d47d20e18bedfced9e45e4 to your computer and use it in GitHub Desktop.
Save papiron/2704aa5568d47d20e18bedfced9e45e4 to your computer and use it in GitHub Desktop.
シェルスクリプトマガジンvol.40の7ページで紹介されているログ解析のサンプルデータを打ち込みました。
私が書いた記事ではないので気が引けますが、せっかく打ち込んだので公開しておきます。
コピペして使ってください。
$ cat proxy.log
date time srcip fqdn service category ua snd rcv
2016-06-11 14:33:32 192.168.0.5 www.sbmc.co.jp http banking safari 112 24764
2016-06-11 10:34:22 192.168.0.3 www.nic.ad.jp https technology firefox 214 2554
2016-06-11 14:25:45 192.168.0.2 uptime.netcraft.com https technology safari 986 67523
2016-06-11 09:22:21 192.168.0.4 www.mof.go.jp http government chrome 672 2554
2016-06-11 10:54:25 192.168.0.3 www.iij.ad.jp http service-provider chrome 246 24369
2016-06-11 19:11:31 192.168.0.5 www.soumu.go.jp http government firefox 196 3559
2016-06-11 14:33:32 192.168.0.5 www.sbmc.co.jp http banking safari 112 24764
2016-06-11 19:55:01 192.168.0.4 www.google.co.jp https search-engine safari 154 4552
2016-06-11 20:10:34 192.168.0.1 www.amazon.co.jp https shopping firefox 332 6554
2016-06-11 20:11:54 192.168.0.3 www.freebsd.org http computer chrome 458 1666514
2016-06-11 20:05:04 192.168.0.1 www.vector.co.jp https software vivaldi 655 499852
2016-06-11 18:25:45 192.168.0.2 www.ipa.go.jp https government opera 556 54723
$ cat ipuser.txt
srcip user
192.168.0.1 佐藤
192.168.0.2 鈴木
192.168.0.3 高橋
192.168.0.4 木村
192.168.0.5 福島
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment