# LOGRESOLVE(1) - man - phpMan

[LOGRESOLVE(1)](https://www.chedong.com/phpMan.php/man/LOGRESOLVE/1/markdown)                                logresolve                                [LOGRESOLVE(1)](https://www.chedong.com/phpMan.php/man/LOGRESOLVE/1/markdown)



## NAME
       logresolve - Resolve IP-addresses to hostnames in Apache log files


## SYNOPSIS
       **logresolve** [ -**s** _filename_ ] [ -**c** ] < _access_log_ > _access_log.new_



## SUMMARY
       **logresolve**  is a post-processing program to resolve IP-addresses in Apache's access logfiles.
       To minimize impact on your nameserver, logresolve has its very own internal hash-table cache.
       This  means  that each IP number will only be looked up the first time it is found in the log
       file.


       Takes an Apache log file on standard input. The IP addresses must be the first thing on  each
       line and must be separated from the remainder of the line by a space.



## OPTIONS
### -s
              Specifies a filename to record statistics.

### -c
              IP address, it looks up the IP addresses for the hostname and checks that one of these
              matches the original address.




Apache HTTP Server                           2018-07-06                                [LOGRESOLVE(1)](https://www.chedong.com/phpMan.php/man/LOGRESOLVE/1/markdown)
