Per Jessen <[EMAIL PROTECTED]> wrote:
> On Tue, 6 Apr 2004 10:41:01 -0400, Lofback, Chris wrote:
>
>> Here's what I need to do.  I want to run Analog and only have it
>> look at log entries that have "planid=1234" somewhere in the query
>> string.
>
>> LINEINCLUDE *planid=1234*
>> There would be alot of applications for something like this, I would
>> think.
>
> Very possibly. The command is called "grep". It'll do what you ask
> and lots more.
>
> cat <logfiles> | grep plan=1234 | analog
>
> I'm not sure if analog will actually read logfiles from stdin, but if
> not write it to a temporary file first.

If you need to do that sort of log processing, one trick that you can
use is the "UNCOMPRESS" directive. It is normally used to allow Analog
to analyze compressed or zipped log files, but you can use it to call
any external command to process a logfile.

http://analog.cx/docs/logfile.html#UNCOMPRESS

Aengus

+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  Digest version: http://lists.isite.net/listgate/analog-help-digest/
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
+------------------------------------------------------------------------

Reply via email to