apacheのアクセスログをIPアドレスからドメイン名に変換するawk処理。
awk '{"dnsname "$1 | getline nm; close("dnsname"); sub($1,nm,$0); print }' /var/log/httpd/access_log
Copyright ©YANO All rights reserved. https://www.bravotouring.com/~yano/
Last-modified: 2024-05-13 (月)
apacheのアクセスログをIPアドレスからドメイン名に変換するawk処理。
awk '{"dnsname "$1 | getline nm; close("dnsname"); sub($1,nm,$0); print }' /var/log/httpd/access_log
Since Dec 5, 1999 |
今日
昨日 |