|
|
ネットワーク No. 534 Apacheのログに記録されたIPアドレスを一斉に名前解決する【解説】 Apache のデフォルト設定では、アクセスログがIPアドレスで記録されます。 これは、ログ保存時の処理速度低下を避けるためです。ログファイルに記述されている IPアドレスを後から一斉に名前解決するためのコマンドとして'logresolve'が用意され ています。 【書式】 logresolve < ログファイル名 > 保存ファイル名 【実行例】 [/var/log/httpd/access_log] ------------------------------------------------------------------------------------ 192.168.12.3 - - [23/Feb/2003:15:22:16 +0900] "GET / HTTP/1.1" 200 1554 10.100.200.3 - - [23/Feb/2003:15:22:56 +0900] "GET /welcome.html HTTP/1.1" 200 1450 ------------------------------------------------------------------------------------ # logresolve < /var/log/httpd/access_log pc3.turbolinux.or.jp - - [23/Feb/2003:15:22:16 +0900] "GET / HTTP/1.1" 200 1554 host.network.com - - [23/Feb/2003:15:22:56 +0900] "GET /welcome.html HTTP/1.1" 200 1450 コマンドの詳細につきましては、`man logresolve`をご参照ください。 apache 関連文書
Last modified : Mon Feb 24 JST 2003 # 1
|
Copyright © Turbolinux, Inc..All Right Reserved.

