Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

split-logfile(8) [linux man page]

SPLIT-LOGFILE(8)						   split-logfile						  SPLIT-LOGFILE(8)

NAME
split-logfile - Split combined virtual hosts access log into one file per virtual host SYNOPSIS
split-logfile < logfile SUMMARY
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 "%v"), and that the logfiles should be named that+".log" in the current directory. The combined log file is read from stdin. Records read will be appended to any existing log files. EXAMPLES
split-logfile < /var/log/apache2/other_vhosts_access.log Apache HTTP Server 2009-12-06 SPLIT-LOGFILE(8)

Check Out this Related Man Page

LOGSAVE(8)                                                    System Manager's Manual                                                   LOGSAVE(8)

NAME
logsave - save the output of a command in a logfile SYNOPSIS
logsave [ -asv ] logfile cmd_prog [ ... ] DESCRIPTION
The logsave program will execute cmd_prog with the specified argument(s), and save a copy of its output to logfile. If the containing directory for logfile does not exist, logsave will accumulate the output in memory until it can be written out. A copy of the output will also be written to standard output. If cmd_prog is a single hyphen ('-'), then instead of executing a program, logsave will take its input from standard input and save it in logfile logsave is useful for saving the output of initial boot scripts until the /var partition is mounted, so the output can be written to /var/log. OPTIONS
-a This option will cause the output to be appended to logfile, instead of replacing its current contents. -s This option will cause logsave to skip writing to the log file text which is bracketed with a control-A (ASCII 001 or Start of Header) and control-B (ASCII 002 or Start of Text). This allows progress bar information to be visible to the user on the console, while not being written to the log file. -v This option will make logsave to be more verbose in its output to the user. AUTHOR
Theodore Ts'o (tytso@mit.edu) SEE ALSO
fsck(8) E2fsprogs version 1.44.1 March 2018 LOGSAVE(8)
Man Page