|
|||
Description | System requirements | Sample usage | Download | Mailing list
Converts numeric IP addresses in access log files into textual domain names.
E.g., this type of log with numeric IP addresses:
153.1.20.77 - - [29/Jan/1999:08:39:48 +0200] "GET /~ktmatu/mathgraph.html HTTP/1.0" 200 831 171.64.36.40 - - [29/Jan/1999:08:43:04 +0200] "GET /~ktmatu/rate-usd.html HTTP/1.0" 200 10780 133.205.44.137 - - [29/Jan/1999:08:49:16 +0200] "GET /~ktmatu/rate-eur.html HTTP/1.0" 200 10719
Looks like this after the conversion:
ml50pc7.uta.fi - - [29/Jan/1999:08:39:48 +0200] "GET /~ktmatu/mathgraph.html HTTP/1.0" 200 831 pigott-104.Stanford.EDU - - [29/Jan/1999:08:43:04 +0200] "GET /~ktmatu/rate-usd.html HTTP/1.0" 200 10780 Ntk15DS45.tk1.mesh.ad.jp - - [29/Jan/1999:08:49:16 +0200] "GET /~ktmatu/rate-eur.html HTTP/1.0" 200 10719
log.txt
and dump results to
stdout:
$ ./lrdns.pl log.txt
log.txt
and dump results to
converted_log.txt
:
$ ./lrdns.pl log.txt > converted_log.txt
log.txt
on the background and dump results to
converted_log.txt
. logout
can be given to
exit from a session.
$ nohup ./lrdns.pl log.txt > converted_log.txt &
$ lynx -source -dump http://www.example.com/log.txt | ./lrdns.pl
log.txt
on the background, compress results, and
send them to my.email@example.com.
$ nohup ./lrdns.pl log.txt | gzip | uuencode converted_log.txt.gz | mailx -s "Converted log" my.email@example.com &
The Lrdns announcement list is for announcements regarding new versions, bugs, etc. You are expected to receive just a few messages per year from this list. To subscribe, send a blank email message to <lrdns_announce-subscribe@yahoogroups.com>.
Matti Tukiainen, ktmatu@nic.fi
Home | Software | Information | Etsin | Chinese | Christmas Calendars | Site Info |