Visitors と Graphviz
GIGAZINEにて紹介されていた「1秒で10万行を処理するフリーの超高速なログ解析ソフト『Visitors』」なるツール。
FreeBSDでは、portsにあります。
いつもにようにportsでインストール。
$ portinstall www/visitors
Graphvizを使えば、フローチャートも表示できるらしい。
こちらもportsにありますね。
さくっと、インストール。
$ portinstall graphics/graphviz
と、思ってましたが、TCLが無いと怒られました。
configではTCL外しているのになぁ...。
とりあえずtcl84をインストール。(84でないとだめです)
$ portinstall lang/tcl84
あら、tkまで必要みたい(これもconfigから外したのに ;)
インストールできたので、さっそく実行。
$ visitors access.log --prefix http:///www/ -V > graph.dot $ dot -Tpng graph.dot > graph.png Renderer type: "png" not recognized. Use one of: dia hpgl mif mp pcl pic vtx
んー、時間切れ。続きは明日。