<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7650.28">
<TITLE>How does linecount work?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Shirefolk:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I am playing with the nifty new 4.2 features, and was trying to get the "linecount" function to work.  I *thought* I could maybe use this to track the number of entries in a file, and perhaps graph over time, but I am starting to suspect that Henrik meant linecount for something else.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I see where you configure client-local.cfg with:</FONT>
</P>

<P>        <FONT SIZE=2 FACE="Arial">linecount:<filename></FONT>

<BR>        <FONT SIZE=2 FACE="Arial"><handle>:<regex></FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">This should alert the Hobbit agent to start grepping <filename> for <regex> and somehow bind the count to <handle>?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Then what?  Do you configure something in hobbit-clients.cfg to match this?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I tried:</FONT>
</P>

<P>        <FONT SIZE=2 FACE="Arial">LOG <filename> .* COLOR=GREEN</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">To see what would happen, but nothing did…</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">GLH</FONT>
</P>

</BODY>
</HTML>