You can apply "split" to the output of "tail"j to generate files of with the same number of lines, that you would process with the program that extracts the intereresting data from them:<br><br>NAME<br>
       split - split a file into pieces<br><br>SYNOPSIS<br>       split [OPTION]... [INPUT [PREFIX]]<br><br>DESCRIPTION<br>       Output fixed-size pieces of INPUT to PREFIXaa, PREFIXab, ...; default size is 1000 lines, and default PREFIX is `x'.  With no INPUT, or when INPUT is -, read standard input.<br>
<br>       Mandatory arguments to long options are mandatory for short options too.<br><br>       -a, --suffix-length=N<br>              use suffixes of length N (default 2)<br><br>       -b, --bytes=SIZE<br>              put SIZE bytes per output file<br>
<br>       -C, --line-bytes=SIZE<br>              put at most SIZE bytes of lines per output file<br><br>       -d, --numeric-suffixes<br>              use numeric suffixes instead of alphabetic<br><br><span style="background-color: rgb(204, 204, 204);">       -l, --lines=NUMBER</span><br style="background-color: rgb(204, 204, 204);">
<span style="background-color: rgb(204, 204, 204);">              put NUMBER lines per output file</span><br><br>       --verbose<br>              print a diagnostic just before each output file is opened<br><br>       --help display this help and exit<br>
<br>       --version<br>              output version information and exit<br><br>       SIZE may have a multiplier suffix: b 512, kB 1000, K 1024, MB 1000*1000, M 1024*1024, GB 1000*1000*1000, G 1024*1024*1024, and so on for T, P, E, Z, Y.<br>
<br><br><div class="gmail_quote">On Mon, Aug 1, 2011 at 5:48 PM, Akins, Brian <span dir="ltr"><<a href="mailto:Brian.Akins@turner.com">Brian.Akins@turner.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
You could use something like syslog-ng that can "tail" the log file and run<br>
them through a script.<br>
<br>
<br>
--<br>
<font color="#888888">Brian Akins<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Oscar Fernandez Sierra<br><a href="mailto:oscaretu@gmail.com">oscaretu@gmail.com</a><br>