other.html.en revision 0cf3cdbaa1dad11cbf1ce32e48f1b4ec88cf779f
842ae4bd224140319ae7feec1872b93dfd491143fielding<?xml version="1.0" encoding="ISO-8859-1"?>
842ae4bd224140319ae7feec1872b93dfd491143fielding<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
842ae4bd224140319ae7feec1872b93dfd491143fielding<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
842ae4bd224140319ae7feec1872b93dfd491143fielding XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
842ae4bd224140319ae7feec1872b93dfd491143fielding This file is generated from xml source: DO NOT EDIT
842ae4bd224140319ae7feec1872b93dfd491143fielding XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
b1627fe7e2cb3809dcdfdf1fcbbb6dbccaf788c6rbb -->
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd<title>Other Programs - Apache HTTP Server</title>
b1627fe7e2cb3809dcdfdf1fcbbb6dbccaf788c6rbb<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd<link href="/images/favicon.ico" rel="shortcut icon" /></head>
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd<body id="manual-page"><div id="page-header">
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd<p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/directives.html">Directives</a> | <a href="/faq/">FAQ</a> | <a href="/glossary.html">Glossary</a> | <a href="/sitemap.html">Sitemap</a></p>
b1627fe7e2cb3809dcdfdf1fcbbb6dbccaf788c6rbb<p class="apache">Apache HTTP Server Version 2.3</p>
b1627fe7e2cb3809dcdfdf1fcbbb6dbccaf788c6rbb<img alt="" src="/images/feather.gif" /></div>
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh<div id="path">
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs/">Documentation</a> &gt; <a href="../">Version 2.3</a> &gt; <a href="./">Programs</a></div><div id="page-content"><div id="preamble"><h1>Other Programs</h1>
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh<div class="toplang">
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh<p><span>Available Languages: </span><a href="/en/programs/other.html" title="English">&nbsp;en&nbsp;</a> |
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh<a href="/ko/programs/other.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a> |
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh<a href="/tr/programs/other.html" hreflang="tr" rel="alternate" title="T�rk�e">&nbsp;tr&nbsp;</a></p>
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh</div>
b1627fe7e2cb3809dcdfdf1fcbbb6dbccaf788c6rbb
b1627fe7e2cb3809dcdfdf1fcbbb6dbccaf788c6rbb <p>The following programs are simple support programs included with the
b1627fe7e2cb3809dcdfdf1fcbbb6dbccaf788c6rbb Apache HTTP Server which do not have their own manual pages. They are not
b1627fe7e2cb3809dcdfdf1fcbbb6dbccaf788c6rbb installed automatically. You can find them after the configuration process
fe46444c8f32f00d040ebefa94bcd0c05ab15ab9martin in the <code>support/</code> directory.</p>
b1627fe7e2cb3809dcdfdf1fcbbb6dbccaf788c6rbb</div>
fe46444c8f32f00d040ebefa94bcd0c05ab15ab9martin<div id="quickview"><ul id="toc"><li><img alt="" src="/images/down.gif" /> <a href="#log_server_status">log_server_status</a></li>
64ff1949093e64474a00badd61a3495e35fa192daaron<li><img alt="" src="/images/down.gif" /> <a href="#split-logfile">split-logfile</a></li>
64ff1949093e64474a00badd61a3495e35fa192daaron</ul></div>
b1627fe7e2cb3809dcdfdf1fcbbb6dbccaf788c6rbb<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
52fc962d27921f20981eef91d6236e9024c604d7wrowe<div class="section">
b1627fe7e2cb3809dcdfdf1fcbbb6dbccaf788c6rbb<h2><a name="log_server_status" id="log_server_status">log_server_status</a></h2>
52fc962d27921f20981eef91d6236e9024c604d7wrowe <p>This perl script is designed to be run at a frequent interval by
e00ae6859667e293a4c40108f524408ae1289f2frbb something like cron. It connects to the server and downloads the status
b1627fe7e2cb3809dcdfdf1fcbbb6dbccaf788c6rbb information. It reformats the information to a single line and logs it to
7d37dff338a52aa8836d78e4f1a67b76911da66caaron a file. Adjust the variables at the top of the script to specify the
7d37dff338a52aa8836d78e4f1a67b76911da66caaron location of the resulting logfile.</p>
7d37dff338a52aa8836d78e4f1a67b76911da66caaron</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
5d5d5ca04c57c7ab865924f4648e8f80de27adfebrianp<div class="section">
5d5d5ca04c57c7ab865924f4648e8f80de27adfebrianp<h2><a name="split-logfile" id="split-logfile">split-logfile</a></h2>
5d5d5ca04c57c7ab865924f4648e8f80de27adfebrianp <p>This perl script will take a combined Web server access log file and
5d5d5ca04c57c7ab865924f4648e8f80de27adfebrianp break its contents into separate files. It assumes that the first field of
5d5d5ca04c57c7ab865924f4648e8f80de27adfebrianp each line is the virtual host identity, put there using the "<code>%v</code>"
7d37dff338a52aa8836d78e4f1a67b76911da66caaron variable in <code class="directive"><a href="/mod/mod_log_config.html#logformat">LogFormat</a></code>.
7d37dff338a52aa8836d78e4f1a67b76911da66caaron </p>
e00ae6859667e293a4c40108f524408ae1289f2frbb
e00ae6859667e293a4c40108f524408ae1289f2frbb <div class="example"><p><code>
e00ae6859667e293a4c40108f524408ae1289f2frbb LogFormat "%v %h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-agent}i\""
e00ae6859667e293a4c40108f524408ae1289f2frbb combined_plus_vhost<br />
e00ae6859667e293a4c40108f524408ae1289f2frbb CustomLog logs/access_log combined_plus_vhost
b1627fe7e2cb3809dcdfdf1fcbbb6dbccaf788c6rbb </code></p></div>
e00ae6859667e293a4c40108f524408ae1289f2frbb
64ff1949093e64474a00badd61a3495e35fa192daaron <p>Log files will be created, in the directory where are running the
8639a789ef8a4adec121d5b26b4d66c5cf8989ccjim script, for each virtual host name that appears in the combined log file.
8639a789ef8a4adec121d5b26b4d66c5cf8989ccjim These logfiles will named after the hostname, with a
8639a789ef8a4adec121d5b26b4d66c5cf8989ccjim <code>.log</code> file extension.</p>
8639a789ef8a4adec121d5b26b4d66c5cf8989ccjim
64ff1949093e64474a00badd61a3495e35fa192daaron <p>The combined log file is read from stdin. Records read will be appended
64ff1949093e64474a00badd61a3495e35fa192daaron to any existing log files.</p>
6a5bdbbacf4a62adecde52b8f23ebcc4fa2a08b8trawick
e00ae6859667e293a4c40108f524408ae1289f2frbb <div class="example"><p><code>split-logfile &lt; access_log</code></p></div>
e00ae6859667e293a4c40108f524408ae1289f2frbb
b1627fe7e2cb3809dcdfdf1fcbbb6dbccaf788c6rbb
a322a82f79b790fb7ddcd7df4459d20725450fa7trawick</div></div>
5d5d5ca04c57c7ab865924f4648e8f80de27adfebrianp<div class="bottomlang">
5d5d5ca04c57c7ab865924f4648e8f80de27adfebrianp<p><span>Available Languages: </span><a href="/en/programs/other.html" title="English">&nbsp;en&nbsp;</a> |
e00ae6859667e293a4c40108f524408ae1289f2frbb<a href="/ko/programs/other.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a> |
6a5bdbbacf4a62adecde52b8f23ebcc4fa2a08b8trawick<a href="/tr/programs/other.html" hreflang="tr" rel="alternate" title="T�rk�e">&nbsp;tr&nbsp;</a></p>
b1627fe7e2cb3809dcdfdf1fcbbb6dbccaf788c6rbb</div><div id="footer">
b1627fe7e2cb3809dcdfdf1fcbbb6dbccaf788c6rbb<p class="apache">Copyright 2009 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh<p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/directives.html">Directives</a> | <a href="/faq/">FAQ</a> | <a href="/glossary.html">Glossary</a> | <a href="/sitemap.html">Sitemap</a></p></div>
</body></html>