Hi Christian,<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">grep -c &lt;keyword&gt; &lt;file-mask eg. *.log&gt;<br>

or if you are looking for only stuff for today for eg then<br>
grep &lt;date&gt; | grep -c &lt;keyword&gt; &lt;file-mask&gt;<br></blockquote><div><br>I don&#39;t see how that will produce figures per hour!<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
That would be the simplest implementation.  For a python implementation think about dictionaries with multiple layers like {Date: {Keyword1: Count, Keyword2: Count}.  Essentially you would just iterate over the file, check if the line contains your keyword(s) that you are looking for and then incrementing the counter for it.<br>
</blockquote><div><br>OK.<br><br>Laomao</div></div><br>