man-pages/man8/split-logfile.8.html
2021-03-31 01:06:50 +01:00

56 lines
1.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of SPLIT-LOGFILE</TITLE>
</HEAD><BODY>
<H1>SPLIT-LOGFILE</H1>
Section: split-logfile (8)<BR>Updated: 2009-12-06<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<P>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
split-logfile - Split combined virtual hosts access log into one file per virtual host
<P>
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<BR>&nbsp;
<P>
<B>split-logfile</B> &lt; <I>logfile</I>
<P>
<A NAME="lbAD">&nbsp;</A>
<H2>SUMMARY</H2>
<BR>&nbsp;
<P>
This script will take a combined Web server access log file and break its contents into separate files.
It assumes that the first field of each line is the virtual host identity (put there by &quot;%v&quot;), and that the logfiles should be named that+&quot;.log&quot; in the current directory.
<P>
The combined log file is read from stdin.
Records read will be appended to any existing log files.
<P>
<A NAME="lbAE">&nbsp;</A>
<H2>EXAMPLES</H2>
split-logfile &lt; /var/log/apache2/other_vhosts_access.log
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="3"><A HREF="#lbAD">SUMMARY</A><DD>
<DT id="4"><A HREF="#lbAE">EXAMPLES</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:16 GMT, March 31, 2021
</BODY>
</HTML>