<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to feature-requests</title><link>https://sourceforge.net/p/fetchlog/feature-requests/</link><description>Recent changes to feature-requests</description><atom:link href="https://sourceforge.net/p/fetchlog/feature-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 10 Jan 2007 17:49:21 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/fetchlog/feature-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>Log Rotation with fetchlog</title><link>https://sourceforge.net/p/fetchlog/feature-requests/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Need to handle rotation of logs and use fethlog to parse prvious log if rotation has occured between runs.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 10 Jan 2007 17:49:21 -0000</pubDate><guid>https://sourceforge.neta5eb22ab2ca2ee3c2830645c15408e4887ebf1f9</guid></item><item><title>Behaviour after cleared logfile</title><link>https://sourceforge.net/p/fetchlog/feature-requests/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thanks for your great work.&lt;/p&gt;
&lt;p&gt;Here is my problem : When the monitored logfile size is &lt;br /&gt;
returning to zero (for example after a reboot or restart of &lt;br /&gt;
a process), fetchlog bookmark file keeps watching too &lt;br /&gt;
far in the file, so no matches are returned while the new &lt;br /&gt;
file is shorter than before...&lt;/p&gt;
&lt;p&gt;Workaround : manually clear bookmark files. However &lt;br /&gt;
this is a bit fragile as the process generating the logfile &lt;br /&gt;
could be stop/start without being notified... So I can not &lt;br /&gt;
know exactly when to clear the bookmark file.&lt;/p&gt;
&lt;p&gt;Maybe there is another method. Maybe I'm missing &lt;br /&gt;
something...&lt;/p&gt;
&lt;p&gt;Solution : &lt;br /&gt;
1) Easy but not 100% reliable : If the file length is below &lt;br /&gt;
bookmark file, bookmark file should be reset&lt;br /&gt;
2) Harder but 98% reliable : If the start of the file (5000 &lt;br /&gt;
first bytes) is different from one check to another, reset &lt;br /&gt;
bookmark file.&lt;br /&gt;
How to check 5000 first bytes without keeping 5000 &lt;br /&gt;
bytes =&amp;gt; use MD5 or other checksum method to &lt;br /&gt;
compare. Keep only checksum in the bookmark file.&lt;br /&gt;
3) 99,9% reliable, check 5000 bytes not from the start, &lt;br /&gt;
check from the "last 5000 bytes" in the file (just before &lt;br /&gt;
the bookmark)&lt;/p&gt;
&lt;p&gt;thank you.&lt;/p&gt;
&lt;p&gt;mail : &lt;br /&gt;
patrick.lepoutre@pimkie.fr&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 10 Oct 2005 09:22:28 -0000</pubDate><guid>https://sourceforge.netadf1490b660f87817c86154a10148d5f3d354383</guid></item></channel></rss>