メモメモ
apacheのアクセスログをIPアドレスからドメイン名に変換するawk処理。
awk '{"dnsname "$1 | getline nm; close("dnsname"); sub($1,nm,$0); print }' /var/log/httpd/access_log
apacheのアクセスログをIPアドレスからドメイン名に変換するawk処理。
awk '{"dnsname "$1 | getline nm; close("dnsname"); sub($1,nm,$0); print }' /var/log/httpd/access_log