1 <?xml version='1.0' encoding='UTF-8' ?>
2 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
3 <?xml-stylesheet type="text/xsl" href="../style/manual.en.xsl"?>
4 <!-- $LastChangedRevision$ -->
7 Licensed to the Apache Software Foundation (ASF) under one or more
8 contributor license agreements. See the NOTICE file distributed with
9 this work for additional information regarding copyright ownership.
10 The ASF licenses this file to You under the Apache License, Version 2.0
11 (the "License"); you may not use this file except in compliance with
12 the License. You may obtain a copy of the License at
14 http://www.apache.org/licenses/LICENSE-2.0
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
23 <manualpage metafile="logresolve.xml.meta">
24 <parentdocument href="./">Programs</parentdocument>
26 <title>logresolve - Resolve IP-addresses to hostnames in Apache
30 <p><code>logresolve</code> is a post-processing program to
31 resolve IP-addresses in Apache's access logfiles. To minimize
32 impact on your nameserver, logresolve has its very own internal
33 hash-table cache. This means that each IP number will only be
34 looked up the first time it is found in the log file.</p>
36 <p>Takes an Apache log file on standard input. The IP addresses
37 must be the first thing on each line and must be separated from
38 the remainder of the line by a space.</p>
41 <section id="synopsis"><title>Synopsis</title>
43 <p><code><strong>logresolve</strong> [ -<strong>s</strong>
44 <var>filename</var> ] [ -<strong>c</strong> ] <
45 <var>access_log</var> > <var>access_log.new</var></code></p>
49 <section id="options"><title>Options</title>
53 <dt><code>-s <var>filename</var></code></dt>
55 <dd>Specifies a filename to record statistics.</dd>
57 <dt><code>-c</code></dt>
59 <dd>This causes <code>logresolve</code> to apply some DNS checks:
60 after finding the hostname from the IP address, it looks up the IP
61 addresses for the hostname and checks that one of these matches the
62 original address.</dd>