~ubuntu-branches/ubuntu/maverick/lire/maverick

« back to all changes in this revision

Viewing changes to doc/user-manual/ch16s05.html

  • Committer: Bazaar Package Importer
  • Author(s): Joost van Baal
  • Date: 2006-11-02 15:30:00 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20061102153000-ln3b4oxkq0xws8c1
Tags: 2:2.0.2-3
debian/po/cs.po: Updated Czech translation. Thanks Martin Šín
(Closes: #391544).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Logs With Virtual Host Information</title><meta name="generator" content="DocBook XSL Stylesheets V1.64.1"><link rel="home" href="index.html" title="Lire User's Manual"><link rel="up" href="ch16.html" title="Chapter�16.�WWW Supported Log Format"><link rel="previous" href="ch16s04.html" title="Referer Log Format"><link rel="next" href="ch16s06.html" title="W3C Extended Log Format"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Logs With Virtual Host Information</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch16s04.html">Prev</a>�</td><th width="60%" align="center">Chapter�16.�WWW Supported Log Format</th><td width="20%" align="right">�<a accesskey="n" href="ch16s06.html">Next</a></td></tr></table><hr></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2509673"></a>Logs With Virtual Host Information</h2></div></div><div></div></div><p>You may encounter log files that have a field
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Logs With Virtual Host Information</title><meta name="generator" content="DocBook XSL Stylesheets V1.68.1"><link rel="start" href="index.html" title="Lire User's Manual"><link rel="up" href="ch16.html" title="Chapter�16.�WWW Supported Log Format"><link rel="prev" href="ch16s04.html" title="Referer Log Format"><link rel="next" href="ch16s06.html" title="W3C Extended Log Format"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Logs With Virtual Host Information</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch16s04.html">Prev</a>�</td><th width="60%" align="center">Chapter�16.�WWW Supported Log Format</th><td width="20%" align="right">�<a accesskey="n" href="ch16s06.html">Next</a></td></tr></table><hr></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2523967"></a>Logs With Virtual Host Information</h2></div></div></div><p>You may encounter log files that have a field
2
2
          containing the virtual host for which the requests was at
3
3
          the beginning of the line. The rest of the line is usually
4
4
          in the common or combined log format. This kind of logging
16
16
        </p><p>Example doing this in a shell:
17
17
 
18
18
          </p><pre class="screen">
19
 
<tt class="prompt">$ </tt> mkdir apache-common.log
20
 
<tt class="prompt">$ </tt> (while read virt rest; do echo $rest &gt;&gt; \
 
19
<code class="prompt">$ </code> mkdir apache-common.log
 
20
<code class="prompt">$ </code> (while read virt rest; do echo $rest &gt;&gt; \
21
21
apache-common.log/$virt; done) &lt; /var/log/apache/common.log
22
 
<tt class="prompt">$ </tt> for f in apache-common.log/*; do \
 
22
<code class="prompt">$ </code> for f in apache-common.log/*; do \
23
23
lr_log2mail -s "$f" common joe@example.com &lt; $f; done
24
24
          </pre><p>
25
25
        </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch16s04.html">Prev</a>�</td><td width="20%" align="center"><a accesskey="u" href="ch16.html">Up</a></td><td width="40%" align="right">�<a accesskey="n" href="ch16s06.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Referer Log Format�</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">�W3C Extended Log Format</td></tr></table></div></body></html>