]> granicus.if.org Git - apache/blob - docs/manual/programs/logresolve.xml
xforms
[apache] / docs / manual / programs / logresolve.xml
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$ -->
5
6 <!--
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
13
14      http://www.apache.org/licenses/LICENSE-2.0
15
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.
21 -->
22
23 <manualpage metafile="logresolve.xml.meta">
24 <parentdocument href="./">Programs</parentdocument>
25
26   <title>logresolve - Resolve IP-addresses to hostnames in Apache
27    log files</title>
28
29 <summary>
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>
35
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>
39 </summary>
40
41 <section id="synopsis"><title>Synopsis</title>
42
43      <p><code><strong>logresolve</strong> [ -<strong>s</strong>
44      <var>filename</var> ] [ -<strong>c</strong> ] &lt;
45      <var>access_log</var> &gt; <var>access_log.new</var></code></p>
46 </section>
47
48
49 <section id="options"><title>Options</title>
50
51 <dl>
52
53 <dt><code>-s <var>filename</var></code></dt>
54
55 <dd>Specifies a filename to record statistics.</dd>
56
57 <dt><code>-c</code></dt>
58
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>
63
64 </dl>
65 </section>
66
67 </manualpage>